some issue about activity life cycle

by Philip Wang » Fri, 13 Nov 2009 09:59:13 GMT

Sponsored Links
 The main activity is running, then there is a interrupt. What was happended,
onPause(), onStop() or other change of life cycle?
1. pressed the volume_down key and ringer volume toast occured, the life of
main activity will not change? why?
2. short press the power key and the OS sleep,how about the activity ?
3. long press the power key and the phone options appear, how?
4. long press the home key and the tast list appear, how?
5. notifications curtain appear, how?
6. press the back key,how?


some issue about activity life cycle

by Philip » Fri, 13 Nov 2009 14:25:04 GMT

 It might be wordy. Thanks for any help. Here is other issue:
7. phone incoming, or clock ringing, how?
8. press menu key, how?
9. long press screen and a dialog pop-up, how ?
10. extra dialog pop-up, for example, another app crash and the dialog
of "force quit" occur, how?

Thanks again.


Sponsored Links

some issue about activity life cycle

by Philip » Sat, 14 Nov 2009 09:57:38 GMT

 Anyone can help me?


some issue about activity life cycle

by » Sat, 14 Nov 2009 13:01:14 GMT

 Hi Philip.

Your questions aren't worded very clearly, but if you'e asking which
Activity lifecycle events occur in the circumstances you list, why not just
test them all? Put log output lines in the lifecycle methods and see what
you get?

Makes of PhoneMyPC

2009/11/13 Philip <>


some issue about activity life cycle

by Philip » Wed, 25 Nov 2009 08:59:17 GMT

 Thank you, Scott.

On 114 10 ""

> >

Other Threads

1. where is sleep/screen behavior documented?

I'm looking around and trying to find out where sleep behavior is
documented - and I mean in the general sense.

When the phone is left alone:
* Sometimes the phone screen dims and doesn't shut off.
* Sometimes the phone screen goes dark in five seconds
* Sometimes the menu lock happens.
* Sometimes the menu lock doesn't happen.
* Sometimes the only way to darken the screen is to push the power

What's not clear is what triggers these different states.   I'm
looking for a complete list I can use in testing and application

Can anyone point me in the right direction?


Richard Schilling
Mobile Operating Systems Engineer
Root Wireless, Inc.

2. Editing Strings.xml from inside .java

Is it possible to edit a string in my strings.xml from within my java
code?  I'd like my app_name to be changed dynamically based off of
user input.

3. Update to 1.6 stops some ADC2 apps from working

4. where is sleep/screen behavior documented?

5. When Softkeyboard in emulator appears, EditText view donot scroll up

6. set default APN programmatically

7. HelloMapView Tutorial not working