Problem with StarAtBoot on HTC devices with Fast boot enabled

viljemto

Member
Licensed User
Longtime User
Hi guys,

did someone find solution for StarAtBoot on HTC devices with Fast boot enabled?

If device is restarted - app is started OK
if device is shutdown and powered on again - app does not start at all.

With regards, Viljem
 

viljemto

Member
Licensed User
Longtime User
No, it does not run. I have deselected StartAtBoot and add code bellow. As far for now that I could test, it is working OK.

B4X:
AddPermission(android.permission.RECEIVE_BOOT_COMPLETED)
 
AddReceiverText(tel, 
<intent-filter>
   <action android:name="android.intent.action.BOOT_COMPLETED" />
   <action android:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>)
 
Upvote 0

viljemto

Member
Licensed User
Longtime User
I would like post to update on this. On HTC Desire 500 dual sim (Android 4.1.2) I had to use all of these:
B4X:
<action android:name="android.intent.action.BOOT_COMPLETED" />

<action android:name="android.intent.action.QUICKBOOT_POWERON" />   
<action android:name="android.intent.action.QUICKBOOT_POWEROFF" />
   
<action android:name="com.htc.intent.action.QUICKBOOT_POWEROFF" />   
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
 
Upvote 0
Top