There are useful cases to having an Activity without a UI... I have two apps on the Android Market and both of them have an activity without a UI. In my case the activity does some processing to determine another activity to be launched.
But in any case, the occurrence of it is common enough that Google provided a custom theme you can use for activities that don't display a UI: http://developer.android.com/reference/android/R.style.html#Theme_NoDisplay However, in my experience I get the best results using this theme: http://developer.android.com/reference/android/R.style.html#Theme_Translucent_NoTitleBar On Thu, Feb 24, 2011 at 5:56 AM, Dudero <[email protected]> wrote: > thank you marcin! > > On 24 Feb., 12:37, Marcin Orlowski <[email protected]> wrote: > > On 24 February 2011 11:53, Dudero <[email protected]> wrote: > > > > > But Dan Morrill sad on the Google IO 2008 presentation that an > > > Activity is "an encapsulation of a particular operation" and > > > "optionally associated with a window (UI)" > > > > People talk various things and it shall rarely be taken literally > > especially when someone is taking about technical things using > > marketing buzzwords :) > > > > > So my question is, which particular operations Mr. Morrill meant that > > > make more sense to use for this an Activity rather than a Service? > > > > You won't use service if you want user interaction and you won't use > > activity if you need background processing. > > Service is designed for different tasks than Activity so i am afraid > > this is quite academic question which leads nowhere. > > > > -- > > Regards, > > Marcin > > -- > 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

