29,6 → 29,9 |
boolean cldc11; |
boolean fileapi; |
|
boolean sensorapi; |
|
|
String comports; |
String props; |
// end values to detect |
75,6 → 78,8 |
cldc11=try_class("java.lang.Math"); |
fileapi=try_class("javax.microedition.io.file.FileConnection"); |
comports=System.getProperty("microedition.commports")+"\n"; |
sensorapi=try_class("javax.microedition.sensor.SensorManager"); |
|
props="enc: " +System.getProperty("microedition.encoding")+"\n"; |
props+="platform: " +System.getProperty("microedition.platform")+"\n"; |
props+="locale: " +System.getProperty("microedition.locale")+"\n"; |
81,9 → 86,19 |
props+="config:" + System.getProperty("microedition.configuration")+"\n"; |
props+="profiles: " +System.getProperty("microedition.profiles")+"\n"; |
props+="hostname: " +System.getProperty("microedition.hostname")+"\n"; |
props+="loc-version: " +System.getProperty("microedition.location.version ")+"\n"; |
props+="loc-version: " +System.getProperty("microedition.location.version")+"\n"; |
|
props+="sensor-api-version: " +System.getProperty("microedition.sensor.version")+"\n"; |
|
|
// test for symbian src: http://discussion.forum.nokia.com/forum/showthread.php?t=96615 |
try { |
Class.forName("com.symbian.gcf.NativeInputStream"); |
props+="symbian: true\n"; |
} |
catch (ClassNotFoundException e) { |
props+="symbian: false\n"; |
} |
root.quit(); |
|
} |