You can intercept the back key (although I highly recommend you don't
do that) but you CANNOT block the Home key. This is a security of the
OS to make sure the user can always exit any application.

Note that pressing Home will not close the Activity.

On Thu, May 6, 2010 at 12:07 AM, Ashok Jeevan <[email protected]> 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 [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



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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

Reply via email to