Why my Midlet "Paused" during phone locked? - java-me

Why is my Midlet not running during phone locked ? ##
I am new to J2ME. I successfully created a Midlet application to play .wav files. But while my Midlet is running, I unintentionally pressed my phone lock button and my phone was locked. Then my Midlet stopped playing sound.
Why has that occured?
How do I make my Midlet continue playing sound while the phone is locked?
I run my application on my Samsung Star.

Can you please tell us which operating system your phone comes with?
Can you see the app running when you unlock the phone?
I'm guessing that the application has gone into destroy mode

Related

Windows Phone 8.1 MediaElement playing audio interupts background audio

I have an app that plays text to speech at certain events to let the user know what's going on. Due to the target audience of this app, it is likely that the user is playing music in the background. When I call play on the MediaElement the background audio stops and does not resume. In a similar app for Windows Phone 8.0 I handled this by creating a background audio task project, but that behavior is deprecated in 8.1. I've exhausted Bing, Google and the Windows API reference and can't find a solution. This must be possible because I listened to music for hours on Saturday while receiving voice navigation from Here maps and never had to restart the music.

Running a Windows Phone 8.0 application in the background/after minimized

I have made a Windows Phone 8.0 application with Visual Studio 2012 that listens to a clap from the microphone and it pauses the current playing song. It is working very fine. But I want to open the app and click the button to start listening and when I go to another app the functionality does not work.
What I need is to make my application run in the background like even in home screen when I sound a clap it should pause the song. How can I achieve this ?
Short answer: Not possible to listen to microphone with a background agent
check this link:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202962(v=vs.105).aspx
Unsupported APIs:
System.Windows.Media A/V Capture
Microsoft.Xna.*

JavaFX: Repaint on desktop unlock

Is there a way to repaint the screen of a JavaFX application when a user returns to the machine and unlocks the computer.
Reason I ask this is that after a user launches the JavaFX application I developed and then locks the desktop and comes back after a few minutes, the JavaFX application screen is blackened out. If the application window is resized, the normal behavior is restored.
I think if the application screen is repainted on desktop unlock that might solve this problem. But the problem at hand is how to capture the desktop unlock event.
Any pointers?
P.S.- I experience this behavior in all javafx applications. Not sure if this is a bug with the current javafx release.

Midlet doesnt respond to touch in older touch screen phone

I am very new to j2me. I have developed a basic SMS Banking app. My app works in most phones which are touch and non touch devices (Samsung duos, Monte, Nokia 6120c …, Sony Ericson w300). But when I installed it in a Samsung SGH-D980 it installs and starts fine. But the list element which is the first screen after my loading splash screen does not respond to the touch. I have developed the app using Net beans 7.0.1 and uses CLDC 1.0 and MIDP 2.0. I have tried the defaultfxtouchphone emulator and works fine on it too. My problem is why does it work on some touch phones but not in the above mentioned touch phone. thank you,
The fact that touch events are available to MIDlet at any other phones means nothing in your case.
MIDP specification (JSR 118) does not force implementation to make touch (pointer) events available to MIDlets even for touch device. According to data provided at club-java page, this is exactly the case for SGH-D980:
Touch screen or mouse (hasPointerEvents()) No
Stylus motion events (HasPointerMotionEvents()) No
As soon as device allows to work with your list in non-touch fashion (you wrote nothing that says it ain't so), there is no problem - you just have to live with that.
of course not passing touch events to MIDlets when these are available natively means that MIDP implementation on this device sucks. But that's a different story

J2ME MIDlet appears in Gallery but not in Applications

I've written a MIDlet with J2ME using Eclipse. To test it, I transfer the MIDlet using a bluetooth connection to my Nokia 6131.
But the MIDlet (or App) just appears in the phone's "Gallery" folder.
How can i move it to the "Applications" folder (where the other J2ME Apps reside)?
Using the Nokia PC Suite should solve the problem and install the program into the "Applications" folder/menu.

Resources