Possible Duplicate:
Start android application without activity
I want to do a download tool for other apps. It would always run in background. All code in service. So no need for a UI. How do I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can still have an Activity just don’t declare an intent-filter in your manifest, that way the user can never start your app from the menu and therefore never see the Activity unless you choose to show it. Going further you could make the Activity theme Transparent as well so that if it is brought to the front it doesn’t show anything.
The kind of examples to look at would be a Live Wallpaper app.
http://developer.android.com/resources/samples/CubeLiveWallpaper/index.html
^ Ignore the actually wallpaper bits but notice that the app doesn’t have an Activity