Tuesday, May 11, 2010

[android-developers] Re: How to disable home and other buttons so as to persist an app?

That won't work. What you want to do is not possible unless you create
your own ActivityManager allowing just one activity: your activity. I
guess you have to create your own AOSP branch for this to happen.

All apps play by the same rules.

And what if the user gets a phone call?
What if a SMS comes in?
What if not only your app wants to be displayed all the time, but
another app wants to be displayed all the time as well?


On May 11, 5:48 am, Ashok Jeevan <ashokjee...@gmail.com> wrote:
> Hi,
>
> Thanks Mr Romain Guy, for the information.
>
> @Mike dg : The requirement is that one app has to be loaded at startup which
> displays a browser with a specified URL. And one of the requirement is that
> whatever buttons the user presses or clicks, the browser shouldn't exit. The
> browser with the specified URL should be the only app that the user has
> access to.
>
> Since the 'Home' button on being pressed, exists the application, the above
> requirement can't be implemented.
>
> Ashok Jeevan
> +91 9895401278
>
>
>
>
>
> On Thu, May 6, 2010 at 8:00 PM, Mike dg <vinb...@gmail.com> wrote:
> > What are you trying to do? You could see that tons of things could go
> > wrong with an app that runs on boot and doesn't allow you to get away.
>
> > -Mike dg
>
> > On May 6, 3:07 am, Ashok Jeevan <ashokjee...@gmail.com> wrote:
> > > Hi guys,
>
> > > I am building an app which uses a WebView. This app runs at startup.
>
> > > Is there a way to maintain the app running(persists) even if the user
> > > presses the 'Home' or 'Back' button?
>
> > > In other words,pressing the 'Home', 'Back' or the other buttons shouldn't
> > > close the activity.
>
> > > Ashok Jeevan
> > > +91 9895401278
>
> > > --
> > > 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<android-developers%2Bunsubs­cribe@googlegroups.com>
> > > For more options, visit this group athttp://
> > 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 android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubs­cribe@googlegroups.com>
> > 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text -
>
> - Show quoted text -

--
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

No comments:

Post a Comment