Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. android multimedia player wait function?
  2. if(plsong.get(j).equals(2130968585))
  3. {
  4. System.out.println("inner if");
  5. try {
  6.     //Thread.sleep(1000);
  7.     synchronized(mp)
  8.     {
  9.         mp.wait(1000);
  10.     }
  11.     mp.notify();
  12. } catch (InterruptedException e) {
  13.     // TODO Auto-generated catch block
  14.     e.printStackTrace();
  15. }catch(IllegalMonitorStateException e){
  16.     System.out.println(e);
  17. }catch(Exception e){
  18.     System.out.println("interval excep" + e);
  19. }
  20.  
  21.  
  22. }