1. Check out our companion app, Forums for Android! Download from Google Play

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

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

  1. BananoTron

    BananoTron Well-Known Member
    Thread Starter
    15

    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 Well-Known Member
    43

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