This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am developing a system o bring non web widgets to android using two components, A Modified HomeScreenApp and the Widget itself.
Is there a specific Android Manifest attribute that allows an app to AutoStart on device bootup?
Yes, you need to request for permission android.permission.RECEIVE_BOOT_COMPLETED , you have to declare it outside the <application> node of Android Manifest file as,
When the phone boots, an Intent is broadcasted to all apps who have registered to receive this Intent. To register for this Intent, like Imran said, you have to use BroadcastReceiver, first declare a receiver inside the <application> node as,
MyReceiver.java is the class that will receive the Intent. You will handle the Intent in the onReceive() method of BroadcastReceiver class. You get approx. 5 secs to do what you want inside onReceive(), after that the system will show 'App not responding' dialog to the user, so make sure you don't do any heavy processing inside that method.
Joined: Mar 02, 2009
and than you have to start your Activity form the onReceive() method of BroadcastReceiver class
i don't know how much it is reliable..... but generally i use this...!!!
Joined: Oct 05, 2002
Thank you both
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com