title: Error: android.view.WindowManager$BadTokenException
body: <p>I tried to run my app in an genymotion emulator however this is the error that I always get.</p>
  
  <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.danicaabinuman.workforce, PID: 2087
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@7ee39fa is not valid; is your activity running?
        at android.view.ViewRootImpl.setView(ViewRootImpl.java:679)
        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:342)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
        at android.widget.Toast$TN.handleShow(Toast.java:434)
        at android.widget.Toast$TN$2.handleMessage(Toast.java:345)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6119)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
  </code></pre>
  
  <p>I tried to run my app to an android mobile and the error did not occur. My app works perfectly fine. Please help me.</p>