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.
J2ME suspended when phone locked
Page 1 of 15 Replies - 1745 Views - Last Post: 27 January 2013 - 03:51 AM
Replies To: J2ME suspended when phone locked
#2
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.
J2ME apps are just that- apps. They are really self-contained.
#3
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.
Try commenting out everything in that method or find some other way to make the program disregard the pause state.
#4
Re: J2ME suspended when phone locked
Posted 26 January 2013 - 10:36 AM
Thanks TheGuy, i was try to insert resumeRequest() into pauseApp()
but my problem not solved yet. What should i do on that method?
public void pauseApp()
{
resumeRequest();
}
but my problem not solved yet. What should i do on that method?
#5
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.
#6
Re: J2ME suspended when phone locked
Posted 27 January 2013 - 03:51 AM
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote









|