I want to write an application which behavs similar to those toggleXXX
(wifi, gps, etc..) already on the market.

As you watch carefully, they do not start an activity. How can this be
done.

On 17 Apr., 16:48, "Mark Murphy" <mmur...@commonsware.com> wrote:
> > Is it possible to start a service directly from the launcher by
> > clicking the application icon?
>
> Services do not have application icons, AFAIK. Only activities do.
>
> > Any clue how to get the icon into the launcher.
>
> Write an activity that, in onCreate(), calls startService(), then finish().
>
> However, if this is an application for the Android Market, users may give
> you low ratings, saying your application is broken, if you do not provide
> more in an activity than that. Consider making a useful activity to
> accompany your service, just so users have a better sense for what it is
> they downloaded and what benefit it is providing to them.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to