Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to obtain infomations in SIM Cards wth J2ME?

 
Chris Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Someone asked me this question, but I don't know how to, and I even don't know if j2me can do this. If you have any documents about this or any examples carring this out, please help me.
Thanks for reply.//bow
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right now, no ... But JSR 177 is supposed to provide a way ...
 
Chris Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.
I find this info from http://www.csdn.net/,but someone tested and says it doesn't work. Can anyone have a check for me? Thank you.
from csdn.net:
Each mobile phone has a special IMEI number,dial "*#06#" can get it.
With J2ME you can use following codepage to check the application is run on a simulator or a phone:

And I got following infomation from jguru.com:
by Itoyjaved C@jguru:
You can access IMEI programtically using Siemens SL45i through the following property :
System.getProperty("com.siemens.IMEI");
Though this is not a standard feature according to J2ME specs.
This solution is just for Siemens SL45i.As such Midp doesn't say anything about IMEI number and way to access it. So it is possible that your code to access IMEI will not work when ported to a different phone from a different Manufacturer.
[ October 07, 2002: Message edited by: Chris Chen ]
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I do not know how much the csdn tip is worth. It might work on some phone models. If you know your exact deployment platform, you can consult with the MIDP mannual that comes with your phone developer kit. I imagine most MIDP device vendors provide extensions to access their underlying hardware. But again, those programs will not be portable. We really need a standard way to access the SIM cards.
 
Chris Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
But again, those programs will not be portable. We really need a standard way to access the SIM cards.

//Agree
Hope MIDP 2.0 can bring this feature to us.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic