Monday, June 6, 2011

[android-developers] Re: Invisible Activity

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 <webnet.andr...@gmail.com> wrote:
> On Jun 6, 2011 10:41 AM, "Marc" <marcolebull...@googlemail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate