The attached sample is supposed to call a sub in the Main activity from a widget, however, nothing happens when I click on the button.
I tried on several devices and several Android versions, same problem.
Other things like StartActivity work just fine, but CallSubDelayed doesn't, not sure if I'm missing something or something needs to be fixed.
I'm running Android 4.3, B4A 2.71 and Java SDK 7 update 25.
NOTE: If you comment/remove the 'Activity.Finish' line in the code, the sub will trigger, but ONLY when you open the app and not from the widget.
I tried on several devices and several Android versions, same problem.
Other things like StartActivity work just fine, but CallSubDelayed doesn't, not sure if I'm missing something or something needs to be fixed.
I'm running Android 4.3, B4A 2.71 and Java SDK 7 update 25.
NOTE: If you comment/remove the 'Activity.Finish' line in the code, the sub will trigger, but ONLY when you open the app and not from the widget.
Attachments
Last edited: