power button hitting onCreate

by scottrick49 » Fri, 23 Apr 2010 08:05:46 GMT


Sponsored Links
 In my application, if you press the power button on the phone, i am
seeing:

onPause
onDestroy
onCreate
onResume
onPause

getting called in that order; I can't figure out why the app is
getting created again and then re-paused.  Obviously I am doing
something incorrect, but I am not sure what.  Anybody seen anything
like this before?

--



power button hitting onCreate

by Dianne Hackborn » Fri, 23 Apr 2010 09:15:47 GMT


 When you turn off the device, the lock screen is displayed.  This typically
forces the display to a particular orientation.  If the screen is not
currently in that orientation, it will need to be changed, and the top
activity's configuration appropriately changed to match.




>


Sponsored Links


Other Threads

1. embeded web browser with custom width and height

I try to create a web browser with custom width and height rather than
fill screen, is that possible to do in android? Below is my snippet
code:

     AbsoluteLayout.LayoutParams params = new
AbsoluteLayout.LayoutParams(
                                180,
                                180,
                                50,
                                90);

        webview = (WebView) findViewById(R.id.webview);
        webview.setLayoutParams(params);
        webview.getSettings().setJavaScriptEnabled(true);
        webview.loadUrl("http://www.google.com");

what am I doing is set web view's width and height to 180 pixels, and
coordinate to 50 and 90. when I run this test, it display a white
square on screen, nothing render at all. Could any one tell me how to
do it in android?

-- 

2. Does it exist an Android view equivalent to a "<select>" HTML input element

Does it exist an Android view equivalent to a "<select>" HTML input
element ?

In my application, user should fill a form.
I know that ListView can display a list of elements but I think it's
not relevant for a form.

Thanks.

-- 

3. target_product variable

4. Why app still runs during a long-press on the power key (or end call key)?

5. How to build apk for sharing resource like frame-res.apk

6. Audio Framework Volume Change

7. How to remove sms notifications in status bar