Tuesday, May 11, 2010

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

So you're trying to be an iPhone? :D Yah, as they said, there is no way to make that work.

Romain, one question on the Home key.. is there any way to detect it so you can close your app when they press the Home key? I would assume the standard lifecycle events still fire, so you can at least pause any game threads, music, etc so as not to consume any resources.


On Tue, May 11, 2010 at 2:48 AM, Ashok Jeevan <ashokjeevan@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 <vinblau@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
> 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
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 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 at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment