• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detect that user open multiple apps?  RSS feed

 
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 ?
 
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.
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!