cedexis / androidradar Goto Github PK
View Code? Open in Web Editor NEWAndroid library for Radar
Android library for Radar
Hello !
I cann't find the 0.1.5 on Gradle : compile 'com.cedexis:android-radar:0.1.5' doesn"t work ?
Can you put the last version on the repos ?
Thanks a lot !
Have a good day !
Hi !
I encountered an issue with your library :
Fatal Exception: android.util.AndroidRuntimeException
android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview
| android.webkit.WebView. (WebView.java:452)
| com.cedexis.androidradar.RadarWebView.createWebView (SourceFile:56)
| com.cedexis.androidradar.RadarWebView. (SourceFile:43)
| com.cedexis.androidradar.Cedexis. (SourceFile:31)
| com.cedexis.androidradar.Cedexis.init (SourceFile:49)
|
Do you have a fix ?
Thank you
Hello, Strict Debug reported me a memory leak
A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at java.util.zip.Inflater.(Inflater.java:82)
at java.util.zip.GZIPInputStream.(GZIPInputStream.java:96)
at java.util.zip.GZIPInputStream.(GZIPInputStream.java:81)
at libcore.net.http.HttpEngine.initContentStream(HttpEngine.java:547)
at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:850)
at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:283)
at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177)
at com.cedexis.androidradar.RadarSessionTask.makeHttpRequest$30b6d505(RadarSessionTask.java:263)
at com.cedexis.androidradar.RadarSessionTask.gatherRadarProviders(RadarSessionTask.java:220)
at com.cedexis.androidradar.RadarSessionTask.doInBackground(RadarSessionTask.java:78)
at com.cedexis.androidradar.RadarSessionTask.doInBackground(RadarSessionTask.java:35)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)
Hi,
There is limitation in Radar.start(int zoneId, int customerId, RadarScheme scheme); interface implementation in RadarWebView.java where is stated that:
if (Build.VERSION.SDK_INT < 24) {
// Resource Timing is probably not available, so let's skip.
// Also skipping HTTPS on versions of Android where TLS might be a problem (<APIv19)
Log.d(TAG, String.format("Skipping on API version %d", Build.VERSION.SDK_INT));
}
Why Resource Timing wouldn't be available on SDK versions bellow 24 since WebView for Android is based on Chromium (which support Resource Timing API) and introduced as such in KITKAT and all above Android versions?
Hi, i got this StringIndexOutOfBoundsException on the last AndroidRadar version (0.1.6).
I never had this before today.
java.lang.StringIndexOutOfBoundsException: length=8; regionStart=0; regionLength=1106539617
at java.lang.String.startEndAndLength(String.java:588)
at java.lang.String.substring(String.java:1475)
at com.android.okhttp.internal.http.HeaderParser.parseCacheControl(HeaderParser.java:31)
at com.android.okhttp.internal.http.ResponseHeaders.<init>(ResponseHeaders.java:146)
at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:139)
at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:644)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:179)
at com.cedexis.androidradar.RadarSession.makeHttpRequest(SourceFile:110)
at com.cedexis.androidradar.RadarSession.makeHttpRequest(SourceFile:126)
at com.cedexis.androidradar.RadarProvider.gatherRadarProviders(SourceFile:100)
at com.cedexis.androidradar.RadarSession.run(SourceFile:324)
at com.cedexis.androidradar.RadarService.onHandleIntent(SourceFile:25)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
The line
at com.cedexis.androidradar.RadarSession.makeHttpRequest(SourceFile:110)
Is in red in my logcat. If you need, i can share you in private the call i've made before the crash:
http://radar.cedexis.com/.../providers.json
Thanks for your help.
Hi!
I got this crash after a long period without using my device:
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.cedexis.androidradar.RadarSession.stop()' on a null object reference at com.cedexis.androidradar.RadarService.onDestroy(RadarService.java:32) at android.app.ActivityThread.handleStopService(ActivityThread.java:2954)
The RadarSession object seems to be null (garbaged) on the RadarService class.
Can you add a simple verification of the RadarSession object before to call the stop() method?
Thanks a lot !
Have a good day !
Alexis.
https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
Is this library going to be hosted anywhere else?
I don't think there is any reason to have that in the androidManifest.xml
Hi,
I have a crash in production:
This API not supported on Android 4.3 and earlier
java.lang.IllegalStateException
Crashed Thread
0 java.lang.IllegalStateException: This API not supported on Android 4.3 and earlier
1 at android.webkit.WebViewClassic.evaluateJavaScript(WebViewClassic.java:2674)
2 at android.webkit.WebView.evaluateJavascript(WebView.java:905)
! 3 at com.cedexis.androidradar.b.onPageFinished(b.java:46)
4 at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:324)
5 at android.os.Handler.dispatchMessage(Handler.java:102)
6 at android.os.Looper.loop(Looper.java:136)
7 at android.app.ActivityThread.main(ActivityThread.java:5001)
8 at java.lang.reflect.Method.invokeNative(Method.java)
9 at java.lang.reflect.Method.invoke(Method.java:515)
10 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811)
11 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627)
12 at dalvik.system.NativeStart.main(NativeStart.java)
Can you correct this ?
Thank you
Hi
I notice a issue when using your sdk:
Crashed Thread
0 java.lang.NullPointerException: Attempt to get length of null array
! 1 at com.cedexis.androidradar.d.d(d.java:83)
2 at com.cedexis.androidradar.e.j(e.java:333)
3 at com.cedexis.androidradar.RadarService.onHandleIntent(RadarService.java:25)
4 at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
5 at android.os.Handler.dispatchMessage(Handler.java:102)
6 at android.os.Looper.loop(Looper.java:150)
7 at android.os.HandlerThread.run(HandlerThread.java:61)
Could you correct this ?
The following error is logged by the WebView:
[INFO:CONSOLE(1)] "Uncaught ReferenceError: cedexis is not defined", source: chrome-error://chromewebdata/ (1)
EDIT: This happens when cleartext traffic to cedexis URLs is not permitted, the error could be more descriptive.
Now that Android Studio 3.2.0 and androidx
1.0.0 libraries have been released, is there a plan to migrate to androidx? Google has said there won't be any more feature releases under the android.support
packaging.
I received some of this crash
com.opalastudios.pads_issue_5746_crash_5AC78C530376000120DFC0FCA886326F_DNE_0_v2.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.