Reply To: Crash when executing startForeGroundDispatch

Forum MIFARE SDK Crash when executing startForeGroundDispatch Reply To: Crash when executing startForeGroundDispatch

Re: Crash when executing startForeGroundDispatch

30. January 2018 at 14:45
I have run into the same problem when using TapLinx SDK 1.4.
With just one Activity everything works fine. However, when I transition between two Activities that both use startForeGroundDispatch in onResume and stopForeGroundDispatch in onPause the crashes happen with the the stack trace in the original post.

Edit: Found the cause: registerActivity needs to be called in onResume before the call to startForeGroundDispatch. I had it in onCreate before which caused TapLinx to use the wrong activity.
+ 0  |  - 0