5 Replies - 3641 Views - Last Post: 27 January 2013 - 03:51 AM

#1 H_Dev  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 25-January 13

J2ME suspended when phone locked

Posted 25 January 2013 - 11:56 PM

Dear all please help,

I am new to j2me programming, i was create .wav player on my phone.
My midlet was running propperly, but immeditelly after my phone locked, my application stopped to playing the sound file.
When i unlock my phone, the midlet start to playing sound again.

Why has that occured ?
How to keep my apllication stay to playing sound even if my phone locked ?

Please help, thanks in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: J2ME suspended when phone locked

#2 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10185
  • View blog
  • Posts: 37,599
  • Joined: 27-December 08

Re: J2ME suspended when phone locked

Posted 25 January 2013 - 11:58 PM

Moved to Mobile Development.

J2ME apps are just that- apps. They are really self-contained.
Was This Post Helpful? 0
  • +
  • -

#3 TheGuy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 17-January 09

Re: J2ME suspended when phone locked

Posted 26 January 2013 - 09:16 AM

If I had to guess, I'd say that when the phone locks, the pauseApp() method is called which temporarily stops the program.
Try commenting out everything in that method or find some other way to make the program disregard the pause state.
Was This Post Helpful? 0
  • +
  • -

#4 H_Dev  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 25-January 13

Re: J2ME suspended when phone locked

Posted 26 January 2013 - 10:36 AM

Thanks TheGuy, i was try to insert resumeRequest() into pauseApp()
public void pauseApp()
{
   resumeRequest();
}



but my problem not solved yet. What should i do on that method?
Was This Post Helpful? 0
  • +
  • -

#5 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 797
  • View blog
  • Posts: 2,423
  • Joined: 29-July 11

Re: J2ME suspended when phone locked

Posted 26 January 2013 - 04:12 PM

You cannot really do anything about this on J2ME standard, as far as I know. On Nokia and blackberry devices you can, because they have vendor created APIs that extend functionality to allow you to do so: example Blackberry.
Was This Post Helpful? 1
  • +
  • -

#6 H_Dev  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 25-January 13

Re: J2ME suspended when phone locked

Posted 27 January 2013 - 03:51 AM

:oops: Thanks a lot farrel2k for your information :) .
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1