• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detect that user open multiple apps?  RSS feed

 
shivmaruti singh
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a app in which we I use camera if user open another app, my app is get stop and pop up some message. Please anyone can give me idea that how do I do that ?
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An Activity's onPause method gets called when it's no longer the foreground window. So call Toast.show() from onPause to show a popup.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!