lemonisdead Well-Known Member Licensed User Longtime User Nov 17, 2015 #1 Hello, Compiled an old project with version 5.50 and noticed this : when the phone is rebooted an existing widget does not receive _Click events until the main Activity has been opened. I have even tried with the example provided here : https://www.b4x.com/android/forum/threads/android-home-screen-widgets-tutorial-part-i.10166/page-10. It does the same. So, I have tried with an old apk and noticed that the widget was really restarted when the phone was rebooted. Now, but I could be wrong, I can see the widget started 3 times but no event seems to be fired (tested on Sony T3, Android 4.4.4 - compiled with android:minSdkVersion="8" android:targetSdkVersion="22", release (obfuscated)) Many thanks Last edited: Nov 17, 2015
Hello, Compiled an old project with version 5.50 and noticed this : when the phone is rebooted an existing widget does not receive _Click events until the main Activity has been opened. I have even tried with the example provided here : https://www.b4x.com/android/forum/threads/android-home-screen-widgets-tutorial-part-i.10166/page-10. It does the same. So, I have tried with an old apk and noticed that the widget was really restarted when the phone was rebooted. Now, but I could be wrong, I can see the widget started 3 times but no event seems to be fired (tested on Sony T3, Android 4.4.4 - compiled with android:minSdkVersion="8" android:targetSdkVersion="22", release (obfuscated)) Many thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 18, 2015 #2 Nothing has changed with RemoteViews. Are you killing the app with the task manager or from the recent apps list? Upvote 0
Nothing has changed with RemoteViews. Are you killing the app with the task manager or from the recent apps list?
lemonisdead Well-Known Member Licensed User Longtime User Nov 18, 2015 #3 Hello Erel, Thanks a lot for your confirmation. No, I am not killing the app at all : it is when the phone is rebooted and until the Main Activity has been started. I will check with other devices and report Upvote 0
Hello Erel, Thanks a lot for your confirmation. No, I am not killing the app at all : it is when the phone is rebooted and until the Main Activity has been started. I will check with other devices and report
lemonisdead Well-Known Member Licensed User Longtime User Nov 24, 2015 #4 Please could someone test the two apk attached ? - HomeWidgets.apk is one compiled in january 2015 - 550.apk is the one compiled with b4a 5.50 Those widgets are the one provided by Erel in his tutorial about. The behavior is the one mentioned above. Thanks Attachments 550.apk 550.apk 125.1 KB · Views: 465 HomeWidgets.apk HomeWidgets.apk 122.3 KB · Views: 458 Upvote 0
Please could someone test the two apk attached ? - HomeWidgets.apk is one compiled in january 2015 - 550.apk is the one compiled with b4a 5.50 Those widgets are the one provided by Erel in his tutorial about. The behavior is the one mentioned above. Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2015 #5 Not sure why it doesn't work for you. I installed 550.apk and added the widget. It continued to work after a restart (I never started the activity). Upvote 0
Not sure why it doesn't work for you. I installed 550.apk and added the widget. It continued to work after a restart (I never started the activity).