[android-developers] Developing Stand alone service

2010-10-06 Thread Fakhri Abbas
How to develop application with service only without any activities,
so the user can't open the application but other applications can use
the service

-- 
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


Re: [android-developers] Developing Stand alone service

2010-10-06 Thread { Devdroid }
On 3 October 2010 15:26, Fakhri Abbas  wrote:
> How to develop application with service only without any activities,
> so the user can't open the application but other applications can use
> the service

Having Activity does not automatically mean you need to show the UI.
So you can have Actvity subclass that fires up service during onCreate()
and then do finish() and it shall be it.

-- 
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


Re: [android-developers] Developing Stand alone service

2010-10-06 Thread TreKing
On Sun, Oct 3, 2010 at 8:26 AM, Fakhri Abbas wrote:

> How to develop application with service only without any activities, so the
> user can't open the application but other applications can use the service
>

Are these other applications written by you? Or is this something you want
others to tap into?

Either way, you should be able to explicitly start the Service or register a
BroadCastReceiver for events (perhaps that you define for others to
broadcast) that then starts the service as necessary.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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