F Firpas Active Member Licensed User Longtime User May 23, 2017 #1 I have tested the code I found in https://www.b4x.com/android/forum/threads/opening-default-clock-alarm-app.26437/#content and I have found that it works fine on Samsung but I think not Works on HTC. Android.content.ActivityNotFoundException: No activity found to handle Intent {act = android.intent.action.SET_ALARM flg = 0x20000 (has extras)}
I have tested the code I found in https://www.b4x.com/android/forum/threads/opening-default-clock-alarm-app.26437/#content and I have found that it works fine on Samsung but I think not Works on HTC. Android.content.ActivityNotFoundException: No activity found to handle Intent {act = android.intent.action.SET_ALARM flg = 0x20000 (has extras)}
eps Expert Licensed User Longtime User May 23, 2017 #2 It might be a different intent on HTC phones - i.e. not handled by Android...? or it might need com prefix before 'android'... What HTC device are you using? What version of Android? Upvote 0
It might be a different intent on HTC phones - i.e. not handled by Android...? or it might need com prefix before 'android'... What HTC device are you using? What version of Android?
Erel B4X founder Staff member Licensed User Longtime User May 23, 2017 #3 HTC have probably replaced the default alarm setting app with a custom one which is not listening to the intent action. You can catch this error and show a message to the user. Upvote 0
HTC have probably replaced the default alarm setting app with a custom one which is not listening to the intent action. You can catch this error and show a message to the user.
F Firpas Active Member Licensed User Longtime User May 23, 2017 #4 Thank you for your answers. I think Erel is right and the default application of alarms is another one on HTC. The device I am using is quite old. I've attached screenshot of phone settings. Thanks for your cooperation. Attachments Htc.png 59.8 KB · Views: 279 Upvote 0
Thank you for your answers. I think Erel is right and the default application of alarms is another one on HTC. The device I am using is quite old. I've attached screenshot of phone settings. Thanks for your cooperation.