function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
FilikinFilikin 

Crash on resume if using pin protect

Hi,
I have two hybird mobile apps - one with smartstore and the other just using the Mobile SDK 2.1
With both of them, if I use pin protect then sometimes the app will crash after the pin is entered.

I can avoid the crash after the pin is entered by turning the phone off and on again.

Has anyone a solution to this?
bhariharanbhariharan
Are you using the Mobile SDK for Android or for iOS? What's the stack trace of the crash?
FilikinFilikin
I am using the Mobile SDK for Android.
After entering the PIN, I am presented with a blank screen. At that point if I press back, I get the crash, with the stack dump:


<terminated>Stock [Android Application]
<disconnected>DalvikVM[localhost:8600]
Stock [Android Application]
DalvikVM[localhost:8601]
  Thread [<1> main] (Suspended (exception NullPointerException))
   <VM does not provide monitor information>
   SalesforceDroidGapActivity(DroidGap).onKeyDown(int, KeyEvent) line: 1031
   KeyEvent.dispatch(KeyEvent$Callback, KeyEvent$DispatcherState, Object) line: 2719
   SalesforceDroidGapActivity(Activity).dispatchKeyEvent(KeyEvent) line: 2431
   PhoneWindow$DecorView.dispatchKeyEvent(KeyEvent) line: 2071
   ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl$QueuedInputEvent) line: 3989
   ViewRootImpl.handleImeFinishedEvent(int, boolean) line: 3925
   ViewRootImpl$ViewRootHandler.handleMessage(Message) line: 3042
   ViewRootImpl$ViewRootHandler(Handler).dispatchMessage(Message) line: 99
   Looper.loop() line: 137
   ActivityThread.main(String[]) line: 4944
   Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
   Method.invoke(Object, Object...) line: 511
   ZygoteInit$MethodAndArgsCaller.run() line: 1038
   ZygoteInit.main(String[]) line: 805
   NativeStart.main(String[]) line: not available [native method]
  Thread [<10> Binder_2] (Running)
  Thread [<9> Binder_1] (Running)
  Daemon Thread [<11> RefQueueWorker@org.apache.http.impl.conn.tsccm.ConnPoolByRoute@424816f8] (Running)
  Thread [<12> CookieSyncManager] (Running)
  Thread [<13> Thread-743] (Running)
  Thread [<14> Thread-744] (Running)
  Thread [<15> Thread-745] (Running)
  Thread [<16> Thread-746] (Running)
  Thread [<17> Thread-747] (Running)
  Thread [<18> AsyncTask #1] (Running)