-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framework should not crash on Androids <4.3 #48
Comments
Where are you seeing that? It looks like a jar is corrupted and you need to re-download it. |
Getting it from Play dev console. All pre 4.3 devices. Will add a check on my end. But shouldn't bring down the app and instead fail gracefully on your end as well. |
You are correct. Changed title of this bug to track it better. |
This is actually crashing the app so high priority!
|
Any update on this? Is there any workaround? |
Oops, I meant: isn't this a duplicate of #25 ? |
This is preventing me from using the Estimote SDK in my app. |
Just check in your app version of Android before using it. On Thu, Aug 28, 2014 at 5:23 PM, keithkml [email protected]
|
That won't work, as the service is loaded in the AndroidManifest.xml, not in code. Any other ideas? |
Not sure what you mean by that but I need my app to e compatible with older devices, the sdk should just disable itself but not crash my app. |
In AndroidManifest.xml you would need to have it declared nevertheless. It is not loaded automatically. You should check BeaconManager#hasBluetooth before interacting with beacons. That's all is needed. |
Hi @wiktor, just having it declared as a service causes these errors. I am not interacting with beacons without checking the SDK version and BeaconManager. This line being present in my AndroidManifest.xml causes my app to crash on Android phones with SDK 4.2 and earlier, with the exception mentioned in this issue description. Please tell me how to modify my AndroidManifest.xml to prevent this crash on <4.3 devices.
|
What's the stack trace? On Thu, Aug 28, 2014 at 6:54 PM, keithkml [email protected]
|
Well now I can't reproduce it... I'm wondering if that issue appears to be in BeaconService, but is actually caused by attempting to load com.estimote.sdk.BeaconManager via Class.forName. Normally when I'm calling into code that may not be supported on earlier SDK's, I simply put it in a try block. But it looks like that doesn't work for Estimote code. |
if(beaconManager.hasBluetooth()) {
...
} indeed seems to avoid this crasher. But I still think this could be handled better by the sdk. |
You are right, it should be handled more gracefully. On Mon, Sep 1, 2014 at 9:39 AM, Francis De Brabandere
|
Hi, I think my error might be related to this. I am trying to use the android sdk for the Estimote Beacons. I have followed all the steps. I am using a Android 4,3 device, but it all just crashes. Could anyone advice me as to how they overcame this?? Thanks! |
"it all jat crashes" is never a good way to get help. What error stack traces do you get? If you stack trace does not look like the above ones you probably should open a different ticket/try some other way to get help. |
Hi @francisdb , 09-08 15:42:44.964: E/AndroidRuntime(10644): FATAL EXCEPTION: main |
The issue is caused by
Because the device is API<18, meaning no The solution @wiktor suggested
Does work, but I would like to also ask for integrating this test in the SDK. Could this issue be linked to a change request? Or at least be included in the quick start? |
Suggestion noted. Thanks. On Mon, Sep 29, 2014 at 5:22 PM, njzk2 [email protected] wrote:
|
Seeing a lot of this:
java.lang.NoClassDefFoundError: com.estimote.sdk.service.BeaconService$InternalLeScanCallback
at com.estimote.sdk.service.BeaconService.(BeaconService.java:122)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2395)
at android.app.ActivityThread.access$1700(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4950)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
at dalvik.system.NativeStart.main(Native Method)
The text was updated successfully, but these errors were encountered: