java.lang.IllegalStateException: Main thread not allowed to quit.

Stack Overflow | Shiraaz.M | 9 months ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How do you Manage a CountdownTimer from within an IntentService?

    Stack Overflow | 9 months ago | Shiraaz.M
    java.lang.IllegalStateException: Main thread not allowed to quit.
  2. 0

    Could not find a method saveData(View)

    Google Groups | 8 months ago | Giuseppe Guarino
    java.lang.IllegalStateException: Could not find a method saveData(View) in the activity class com.example.giuse.secondly.NewSheet for onClick handler on view class android.widget.Button with id 'button_save' at android.view.View$1.onClick( at android.view.View.performClick( at android.view.View$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke( at$

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Main thread not allowed to quit.

      at android.os.MessageQueue.quit()
    2. Android Platform
      1. android.os.MessageQueue.quit(
      2. android.os.Looper.quit(
      2 frames
    3. com.nursson.pomodorotimer
      1. com.nursson.pomodorotimer.service.PomodoroService$1$override.onFinish(
      2. com.nursson.pomodorotimer.service.PomodoroService$1$override.access$dispatch(
      3. com.nursson.pomodorotimer.service.PomodoroService$1.onFinish(
      3 frames
    4. Android Platform
      1. android.os.CountDownTimer$1.handleMessage(
      2. android.os.Handler.dispatchMessage(
      3. android.os.Looper.loop(
      4 frames
    5. Java RT
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      2 frames