Ron- This is not comprehensive, but here is one example:
You can create an Activity that serves to accept Intents, process or react to them in a non-UI way, and then either send a new Intent or a response. Here's how: Do all of the work in onCreate(), never call setContentView(), and on the way out of onCreate, be sure to call finish(). --Andy On Mon, Feb 2, 2009 at 8:03 PM, Ron DuPlain <ron.dupl...@gmail.com> wrote: > > I hear that "some Activities never display UIs" according to > http://code.google.com/android/devel/building-blocks.html. My > question: is this true? > > I have yet to find a way to make an Activity without a UI. > Documentation suggests an Activity can be non-visual. For example, > Activity.getWindow() returns the "current window, or null if the > activity is not visual." When would an Activity have a null Window? > The docs say "the Activity class takes care of creating a window for > you..." at http://code.google.com/android/reference/android/app/Activity.html. > > Any idea? > > Ron > > > PS - Yes, I know a Service does not have a UI. My question is about > the Activity class. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---