On Tue, Jul 10, 2012 at 8:28 AM, Justin Anderson <magouyaw...@gmail.com>wrote:
> i want my app should start in background without displaying ui, >> > That is possible, but must be done through an Activity... Use > Theme.NoDisplay on your activity, have it start your service, and then > finish. > No, that is not running in the background. That is an activity that assumes it will never be seen by the user, but it is still at the top of the stack and if you don't immediately finish it you will give the user your app in a broken state. To the original poster -- of course you can use a Service without an Activity. There is nothing about a Service that ties it to an Activity, anywhere in the API. 1. Implement a Service. 2. Declare it in your manifest. 3. call startService() at the point you want it to start. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en