>
> can we create a service without any activity
>
Sounds like some sort of spyware to me... Fortunately, newer versions of
Android have made this impossible.

i hav an application of email sending automatically so i made a activity
> and run it as a service when my device is switched on after booting it
> start automatically and display the ui of activity,, i dnt want dis
> ui,,what shall i do help me
>
Newer versions of Android prevent your app from doing anything, including
responding to broadcasts (such as to notify that the device has been turned
on) until the user first initiates a launch of your app.

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.

how to make it service without any activity
> can we make service without any activity..help me

Do you really need to ask the same question multiple times?  I understood
you the first time.

It sounds to me like you have an incomplete understanding of how services
work on Android... they should not run forever, and Android will kill your
service if it needs the memory...  I would highly recommend checking out
Mark Murphy's article on services:

http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Jul 7, 2012 at 1:05 AM, Ashu <[email protected]> wrote:

> can we create a service without any activity
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to