They do start an activity. Look at the log output to see. As of cupcake, one can write app widgets that do a similar thing without starting an activity (in that case they deliver an intent to a receiver).
On Fri, Apr 17, 2009 at 8:10 AM, Bonifaz <[email protected]> wrote: > > 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" <[email protected]> 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! > > > -- Dianne Hackborn Android framework engineer [email protected] 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 [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 -~----------~----~----~----~------~----~------~--~---

