System.getProperty("microedition.platform" returned a different string on the emulator and on the phone. This should work be the solution to your problem.
It's advisable to use the Java MIDP App Development guide in Java/Documents section. The property above is mentioned under the localisation topic.
[N]/ Forum Nokia