开发者

recognize when application returns from blank screen

Is it possible to get know when my application returns to view for user, after blanking screen? In this moment application calls method onResume, and my application has crash. ("has stopped unexpe开发者_如何学Cctedly") I know why and I can repair this problem, but I need to know when application returns from blank screen.


If you're talking about the point when user unlocks the device - ACTION_USER_PRESENT is what you need. If this is not the case - please elaborate and post more details


What do you mean by "after blanking screen" ? like if the screen times out and turns off? Either way it will be mostly impossible for us to help you with only the information you've given. Post the code from your onResume() method, also look in the Logcat and copy the stack trace that comes from the exception you're getting. Post that here too. Once you have done this it is far more likely that we can help you resolve the problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜