Subversion Repositories Projects

Rev

Rev 280 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 280 Rev 316
Line 27... Line 27...
27
    boolean devicecontrol;
27
    boolean devicecontrol;
28
    boolean bluetooth;
28
    boolean bluetooth;
29
    boolean cldc11;
29
    boolean cldc11;
30
    boolean fileapi;
30
    boolean fileapi;
Line -... Line 31...
-
 
31
 
-
 
32
    boolean sensorapi;
-
 
33
 
31
 
34
 
32
    String comports;
35
    String comports;
33
    String props;
36
    String props;
Line 34... Line 37...
34
    // end  values to detect
37
    // end  values to detect
Line 73... Line 76...
73
        devicecontrol=try_class("com.nokia.mid.ui.DeviceControl");
76
        devicecontrol=try_class("com.nokia.mid.ui.DeviceControl");
74
        bluetooth=try_class("javax.bluetooth.DiscoveryAgent");
77
        bluetooth=try_class("javax.bluetooth.DiscoveryAgent");
75
        cldc11=try_class("java.lang.Math");
78
        cldc11=try_class("java.lang.Math");
76
        fileapi=try_class("javax.microedition.io.file.FileConnection");
79
        fileapi=try_class("javax.microedition.io.file.FileConnection");
77
        comports=System.getProperty("microedition.commports")+"\n";
80
        comports=System.getProperty("microedition.commports")+"\n";
-
 
81
        sensorapi=try_class("javax.microedition.sensor.SensorManager");
-
 
82
       
78
        props="enc: " +System.getProperty("microedition.encoding")+"\n";
83
        props="enc: " +System.getProperty("microedition.encoding")+"\n";
79
        props+="platform: " +System.getProperty("microedition.platform")+"\n";
84
        props+="platform: " +System.getProperty("microedition.platform")+"\n";
80
        props+="locale: " +System.getProperty("microedition.locale")+"\n";
85
        props+="locale: " +System.getProperty("microedition.locale")+"\n";
81
        props+="config:" + System.getProperty("microedition.configuration")+"\n";
86
        props+="config:" + System.getProperty("microedition.configuration")+"\n";
82
        props+="profiles: " +System.getProperty("microedition.profiles")+"\n";
87
        props+="profiles: " +System.getProperty("microedition.profiles")+"\n";
83
        props+="hostname: " +System.getProperty("microedition.hostname")+"\n";
88
        props+="hostname: " +System.getProperty("microedition.hostname")+"\n";
84
        props+="loc-version: " +System.getProperty("microedition.location.version ")+"\n";
89
        props+="loc-version: " +System.getProperty("microedition.location.version")+"\n";
-
 
90
 
-
 
91
        props+="sensor-api-version: " +System.getProperty("microedition.sensor.version")+"\n";
Line -... Line 92...
-
 
92
 
-
 
93
 
-
 
94
        // test for symbian src: http://discussion.forum.nokia.com/forum/showthread.php?t=96615
-
 
95
        try {
-
 
96
            Class.forName("com.symbian.gcf.NativeInputStream");
-
 
97
            props+="symbian: true\n";
-
 
98
        }
-
 
99
        catch (ClassNotFoundException e) {
85
 
100
            props+="symbian: false\n";
Line 86... Line 101...
86
 
101
        }