1. Download our Official Android App: Forums for Android!

Apps How to trigger onPause()/onResume() cycle on the emulator

Discussion in 'Android Development' started by BananoTron, Jan 3, 2009.

  1. BananoTron

    BananoTron Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    50
    Joined:
    Dec 1, 2008

    Dec 1, 2008
    50
    0
    15
    hey folks,

    can anyone give me a hint how to trigger the onPause() -> onResume() (NOT including onStop()/on(Re)Start()) cycle using the emulator? i tried the "incoming call" function but it always calls onStop() as well. i need this to test if my onPause/onResume code is working properly. while googling i read something about an emulator setting which causes the activities to be destroyed always but i couldn't find that setting in my emulator. if i could deactivate that feature i might be able to test my lifecycle handling better.

    any comments are appreciated.
     

    Advertisement

  2. devolio

    devolio Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    339
    Joined:
    Oct 30, 2008

    Oct 30, 2008
    339
    37
    43
    Developer
    Michigan
    I think you can trigger it by pressing home, and then holding home and going back into the app.
     

Share This Page

Loading...