5,11 → 5,15 |
* Author: Marcus -LiGi- Bueschleb |
* Mailto: LiGi @at@ LiGi DOTT de |
* |
* |
* this class detects some propertys of the Phone |
* |
***************************************************************/ |
|
import javax.microedition.lcdui.*; |
import java.io.*; |
import javax.microedition.io.*; |
import javax.microedition.rms.*; |
|
public class DUBwiseInstallerCanvas |
extends Canvas |
37,7 → 41,43 |
// end values to detect |
|
DUBwiseInstaller root; |
private boolean fs_check=true; // fullscreen check |
|
|
|
|
public String description_str() |
{ |
|
int rms_avail=0; |
try { |
RecordStore recStore = RecordStore.openRecordStore("test", true ); |
rms_avail=recStore.getSizeAvailable(); |
} |
catch ( Exception e) {} |
System.gc(); // to have better results measuring the Mem |
return |
|
"Screenwidth:" + canvas_width + "\n" |
+"Screenheight:" + canvas_height + "\n" |
+"Screenwidth FS:" + canvas_full_width + "\n" |
+"Screenheight FS:" + canvas_full_height + "\n" |
+"CLDC1.1:" + cldc11 + "\n" |
+"JSR-82:" + bluetooth + "\n" |
+"JSR-179:" + locationprovider + "\n" |
+"FileConn:" + fileapi + "\n" |
+"SensorAPI:" + sensorapi + "\n" |
+"DeviceControl:" + devicecontrol + "\n" |
+"comports:" + comports + "\n" |
|
+"freeMemory:" + Runtime.getRuntime().freeMemory()+ "\n" |
+"totalMemory:" + Runtime.getRuntime().totalMemory()+ "\n" |
+"RMSAvail:" + rms_avail+ "\n" |
+props; |
|
} |
|
|
public boolean try_class(String class_name) |
{ |
try |
99,13 → 139,11 |
catch (ClassNotFoundException e) { |
props+="symbian: false\n"; |
} |
root.quit(); |
root.canvas_hw_detect_finish(); |
|
} |
|
|
boolean fs_check=true; |
|
public void paint(Graphics g) |
{ |
|