Code example for IllegalStateException

Methods: getMessageprintStackTrace

0
    { 
      m_player.prepare (); 
    } 
    catch (IllegalStateException e) 
    { 
      show_toast (e.getMessage ()); 
      e.printStackTrace (); 
 
    } 
    catch (IOException e) 
    { 
      show_toast (e.getMessage ()); 
      e.printStackTrace (); 
    } 
 
    m_player.setOnCompletionListener (this); 
  } 
 
  @Override 
    public void onStop ()