For use cases more like these, although the Dialog example clearly
seems more appropriate (/ realistic), would just using instrumentation
be an option for you?  (As long as you are just talking about test
code, of course,...)

kris

On Wed, Aug 22, 2012 at 1:04 AM, Ubuntu guy <[email protected]> wrote:
> Hello,
>
>    I'm developing an application and need to quickly test a scenario
> where my activitiy's onPause() is invoked (without onStop()).
> As per the documentation, this is a scenario where a dialog is shown
> on top of my activity. I tried long press of power down button to pop
> up a dialog, however, it doesn't invoke a onPause() at all.
>
>    Is there any easy way to simulate this scenario?
>
> Thanks in advance ! ! !
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to