Sure you can! There's nothing that says you must have an Activity in your application. Does your widget handle all user interaction though? Do you have any notifications that a user might click on and expect to see an activity UI? A user can always find your application in the Settings -> Applications -> Manage Applications list, so has a way to remove it even if there is no launcher icon in the Apps area. What about preferences? That's an activity too. But if you don't need any of that, you don't have to have an activity in your app.
- dave On Feb 13, 6:40 pm, AndroidDevTime <androiddevd...@gmail.com> wrote: > Is it possible to have an Android application that runs without a Main > Activity? I have mostly Widget<-->Service communication and I really > don't want a Main Activity to show most of the time. But anyway my > question is can this be done? Does an application have to have a Main > Activity? Can it start and run invisibly or does it always have to > have screen visible when its running? -- 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