• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detect that user open multiple apps?

 
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!