ET1....autostart application at boot

// Expert user has replied.
E Efkan YILMAZ 3 years 5 months ago
49 2 0

Hi all, I need to autostart an application at the boot of the ET1........any suggestion? Bye Alberto

Please Register or Login to post a reply

2 Replies

P Pietro Francesco Maggi

Hi Alberto, if the application you want to launch at startup is something that you build, you can add to the Manifest.xml file the following category to the main activity:                                                                                                         Adding the two red lines to the manifest.xml let you choose your application as launcher (and you can make this choose permanent). In this way this application will be started at boot. regards Pietro

Y Yusuf Dalal

You can create a broadcast receiver that listens for the BOOT_COMPLETED event. Once your receiver gets invoked you can call startActivity and setup the intent so that it will launch the activity that you want. Or you can startup a service depending on what it is that you want to do. Your app will also need the android.permission.RECEIVE_BOOT_COMPLETED to work correctly. http://stackoverflow.com/questions/6080515/android-start-service-on-boot Yusuf

CONTACT
Can’t find what you’re looking for?