0

The app I am working on has just one activity with 5 tabs in a ViewPager. I want to call a dialog on two devices. Only when this dialog is open the app should be allowed to accept Android Beam messages.

I don't want the user to use Android Beam without the dialog open. Is there a way to block Android Beam?

I only found solutions to block Android Beam in activities. But I only have one activity.

Michael Roland
  • 39,663
  • 10
  • 99
  • 206
Benjamin Wolf
  • 93
  • 1
  • 9
  • just create a new activity and use a `Dialog` theme. It will look like a dialog, but it will be a whole activity. Something like `Theme.AppCompat.Dialog` should work.. – Budius Oct 19 '15 at 14:25
  • this is not possible in my app. the app loads hundrets of views at start. this takes several seconds. and also it communicates with the server at different times. i would need to start this main activity again after the nfc-transaction right? this is really time intensive – Benjamin Wolf Oct 19 '15 at 14:55
  • but this is not the question here ^^ – Benjamin Wolf Oct 19 '15 at 16:22

0 Answers0