How to differs emulator and real devices from a midlet?
posted 11 years ago
Hi, Is there a code or function that make my midlet knows on what is it running? is it an emulator or a real device? I need it to make my midlet only runs on a real device, if it is ran on an emulator it won't execute some actions. Thank you
Well, the Wireless toolkit pretty much has all the J2ME APIs including newer JSRs, so all the "Actions" should work. I don't think an actual user will run it on an emulator, and wouldn't worry about adding code that tries to determine where it is running, and which I doubt you would be able to find out.
Thanks Mark for your reply. My midlet has to communicate with server in a certain way, and in order to hide the format data and the protocol i'm trying to make my midlet won't run in an emulator, because in some emulator someone can see datas which being sent or received. I'm just trying to protect my server from an unresponsible person
Your mother was a hamster and your father was a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user