Too many alarms (500) registered from uid

Too many alarms (500) registered from uid

Hey guys, i`m using SDK for Android version 99.1.10.0.1564. I installed sdk and import to my Android Studio Project. 
I getting error on Samsung devices when create Sensing object in Application class:

Fatal Exception: java.lang.RuntimeException: Unable to create application info.goodline.alexei.ble.AppController: java.lang.SecurityException: !@Too many alarms (500) registered from uid 10301
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5879)
       at android.app.ActivityThread.-wrap3(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1699)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6682)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Caused by java.lang.SecurityException: !@Too many alarms (500) registered from uid 10301
       at android.os.Parcel.readException(Parcel.java:1693)
       at android.os.Parcel.readException(Parcel.java:1646)
       at android.app.IAlarmManager$Stub$Proxy.set(IAlarmManager.java:228)
       at android.app.AlarmManager.setImpl(AlarmManager.java:735)
       at android.app.AlarmManager.setRepeating(AlarmManager.java:496)
       at com.intel.context.e.a.b.b(SourceFile:80)
       at com.intel.context.b.a.a.a.<init>(SourceFile:146)
       at com.intel.util.a.a(SourceFile:60)
       at com.intel.context.Sensing.<init>(SourceFile:88)
       at info.goodline.alexei.ble.AppController.onCreate(AppController.java:48)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1032)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5876)
       at android.app.ActivityThread.-wrap3(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1699)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6682)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

 

Why this error is coming and how we can fix it.

 

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi, Intel Context Sensing SDK does not register any alarms.

Which Android version are your using? Can you please check this post which might be useful to resolve the error: https://stackoverflow.com/questions/29344971/java-lang-securityexception...

Quote:

NEENA M. (Intel) wrote:

Hi, Intel Context Sensing SDK does not register any alarms.

Which Android version are your using? Can you please check this post which might be useful to resolve the error: https://stackoverflow.com/questions/29344971/java-lang-securityexception...

Thank you for your answer, but I don't use alarms in my app. Don't know what other reasons could cause that error?

 

These are the supported Androids:

Supported Android* Operating Systems  Nougat – 7.0 (ARM)  Marshmallow – 6.0 (IA and ARM)  Lollipop – 5.0 (IA and ARM)  Kit Kat – 4.4 (IA and ARM)  Jelly Bean – 4.3 (ARM)  Ice Cream Sandwich – 4.0 (ARM)  Gingerbread – 2.3 (ARM)  Froyo – 2.2 (ARM)

Please check the release notes for device and Android compatibility.

https://software.intel.com/sites/default/files/managed/58/22/intel-conte...

Good Day,

Shubha

 

 

Hi, Please let us know the Android version and the provider that you are using. If you can provide some code sample, that will be good.

Leave a Comment

Please sign in to add a comment. Not a member? Join today