- 05-07-2006, 11:35 PM #1
Why is it that applications can work on the emulator, but not on the actual phone.
ex:
public HelloWorld()
{
myDisplay = Display.getDisplay(this);
mainScreen = new Form("HelloWorld");
String strItem = new String("Hello:");
strItem = strItem +"\n"+ FileSystemRegistry.listRoots().nextElement();
mainScreen.append(strItem);
}
the line in bold essentially outputs the first Root in the phone's file system. on the simulator, this works and the program outputs
Hello:
a/
oh the phone, i get an "application error"
note: without the line referencing the FileSystemRegistry, the application runs fine. so the problem lies in the execution of that line.
anyone have a reason why this is happening. if not, do you know how i can get a better description then "a e" such as error codes, etc...
thank you for any help offered in advance..
› See More: runs on emulator ; not on phoneLast edited by addamaniac; 05-07-2006 at 11:38 PM.
- 02-25-2009, 06:47 AM #2Newbie
- Posts
- 5
Re: runs on emulator ; not on phone
FileSystemRegistry is comes with JSR-75 and it gives access to the local file systems. But that is available on devices like PDA. You might running this on non compatible phone. Check your emulator running versions are MIDP2 and CLCD 1.1 Normal phones support only for those configurations.
CDC or MIDP 2.1 does not support normal phones
Similar Threads
- LG enV
- alt.cellular.verizon
- LG
- alt.cellular.motorola
NFT blockchain and consequences
in Chit Chat