Der Mond Member Licensed User Longtime User Oct 22, 2012 #1 Hello to all, is there a way to programmatically enable and disable autorun an application? Thanks to all Vincenzo :sign0013: for my english
Hello to all, is there a way to programmatically enable and disable autorun an application? Thanks to all Vincenzo :sign0013: for my english
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2012 #2 Do you mean "start at boot"? Upvote 0
Der Mond Member Licensed User Longtime User Oct 23, 2012 #3 Thanks for the reply, I created a service with the option "start at boot" and everything works. I would like to turn on and off "start at boot" programmatically through code. Thank you Vincenzo Upvote 0
Thanks for the reply, I created a service with the option "start at boot" and everything works. I would like to turn on and off "start at boot" programmatically through code. Thank you Vincenzo
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2012 #4 You cannot turn off this option at runtime. However you can just stop the service after it starts if it is not needed. Upvote 0
You cannot turn off this option at runtime. However you can just stop the service after it starts if it is not needed.
Der Mond Member Licensed User Longtime User Oct 23, 2012 #5 Is there a way to intercept the boot of the device? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2012 #6 When you check "start at boot" you are actually intercepting the boot event. You can check the intent in Service_Start. The action will be: android.intent.action.BOOT_COMPLETED Upvote 0
When you check "start at boot" you are actually intercepting the boot event. You can check the intent in Service_Start. The action will be: android.intent.action.BOOT_COMPLETED
Der Mond Member Licensed User Longtime User Oct 23, 2012 #7 Thank you so much Erel, you are always very helpful Vincenzo Upvote 0