-
Notifications
You must be signed in to change notification settings - Fork 120
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
Example to add alarm to alarm manager - Error #126
Comments
Hi! Please, change |
@lampaa thanks a lot! sApp.start(function(success) { inside function error there is "console.error(success)" but success is not defined. |
@Danyzzz fixed, thx) |
I can fix this by replacing "action":"android.intent.action.SET_ALARM" by "intent":"android.intent.action.SET_ALARM". |
Hi all and happy new year!!!!
I was trying to set an alarm with the following code:
I also added the following permission in the manifest
<uses-permission android:name="com.android.alarm.permission.SET_ALARM"/>
But I get the following error:
class java.lang.NoSuchFieldException: No field android.intent.action.SET_ALARM in class Landroid/content/Intent; (declaration of 'android.content.Intent' appears in /system/framework/framework.jar)
How can I solve? I'm trying on a galaxy A7 - Android marshmallow
Thanks a lot.
The text was updated successfully, but these errors were encountered: