if you dont want to display your activty on the screen dont make it as an activity make it a different class write the code in this and call it wherever you want this class if you dont want the object of this class creaated every time make it static
On Jun 6, 11:22 pm, Marcin Orlowski <[email protected]> wrote: > On Jun 6, 2011 10:41 AM, "Marc" <[email protected]> wrote: > > > I would like to create an app that changes the volume and then exits. > > For that I obviously won't need an UI or service, as a toast is > > enough. > > if you not need any ui for activity, simply do not use any in your > onCreate() -- 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

