Well the exact behavior I want is if the application is auto started on boot then no activity will show, until via widget user makes such a request. However, I also want to allow the user to launch the application via the application list and in that case I want an activity to show. If the device is powered on/off then it will come back on without the activity. So I don't really want to take the main activity out in the case of a user launch. Is there anyway in the application to detect the application launch method and if it is not a user application driven lauch avoid showing the main activity.
On Feb 13, 4:03 pm, Kostya Vasilyev <[email protected]> wrote: > You don't have to have the main activity in your application, or any > activities at all. Check the manifest and remove the launcher-specific > intent filter from your main activity if you don't want it to show up in the > application list. > > However, my personal observation is that doing this can cause user confusion > and a bunch of 1-star "duznt opin" type comments in Market. > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > 14.02.2011 2:40 пользователь "AndroidDevTime" <[email protected]> > написал: > > > 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 [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 -- 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

