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


Last Updated:

  1. BananoTron

    BananoTron Well-Known Member This Topic's Starter

    Joined:
    Dec 1, 2008
    Messages:
    50
    Likes Received:
    0
    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

    Joined:
    Oct 30, 2008
    Messages:
    339
    Likes Received:
    37
    I think you can trigger it by pressing home, and then holding home and going back into the app.
     

Share This Page

Loading...