×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    25

    Question How to get device no. from a j2me app.?

    Hi,

    How to get device no. from a j2me app.? means if a j2me app. is running on my device then i want to retrieve the device no. from that app.
    How to get it?

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: How to get device no. from a j2me app.?

    hi,

    What you are talking about device no means..mobile phobe model or what....Kindly try to privide the complete information.And if you are talking about the mobile model then go and search the forum nokia you will find the zip file that explains everything..

    this url may be helpful to you.

    http://www.forum.nokia.com/info/sw.n..._2_en.zip.html

    Is this the thing you asking for....

    Enjoyee.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: How to get device no. from a j2me app.?

    Hello

    There is some information about that in the FAQs of this forum... (the first thread you see in the main page)

    http://discussion.forum.nokia.com/fo...ad.php?t=85660


    Look at the last post made by dcrocha ... he wrote some information about that.

  4. #4
    Registered User
    Join Date
    Jan 2007
    Posts
    25

    Re: How to get device no. from a j2me app.?

    I want to retrieve the cell no. (+919890.....) from the application.

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: How to get device no. from a j2me app.?

    Hi,

    You tell me first that whether that zip file is helpful to you or not..did you try that.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  6. #6
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Wink Re: How to get device no. from a j2me app.?

    Hello guys:

    raj: the link you gave us above is broken... please try to put it again

    shreyasbellary: there is very useful information about what you need in the link I already posted (retrieving the msisdn)... make sure you read that.

    Tell us how it goes

  7. #7
    Registered User
    Join Date
    Jan 2007
    Posts
    25

    Question Re: How to get device no. from a j2me app.?

    Hi raj,

    the link you gave us above is broken... please try to put it again

    Hi rdrincon,

    The info in the link u gave is useful. But please explain the 2nd possibility (using Wireless Messaging API)in the Q.
    "Q: How do I retrieve the phone number from my midlet?"

    I m not using server side app. so please explain me the 2nd option. I havent got it clearly.
    Code:
    Message.getAddress()



    Thanks,

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: How to get device no. from a j2me app.?

    Hi guyes,

    ok..i m sory for that....
    did you guyes read this discussion..
    Q: How do I retrieve the phone number from my midlet?

    You would have to use the JSR 253 - Mobile Telephony API which allows you to have a fairly good set of call-related funcionality, so it's possible that this API will also provide a way to let you know what's your phones's number. No Nokia devices currently support JSR 253.

    There are some possible workarounds:

    1. When the user first downloads the application, have a server-side app such as a Java servlet or PHP script that retrieves the phone number from the HTTP header, and set it as a property in a dynamically-generated JAD file. This way, when your midlet is running, it can check the phone number using getAppProperty() method from MIDlet class. This approach will only work if the device is accessing the server-side application using a WAP access point, however. This happens because in this type of access point, an HTTP header containing the MSISDN (phone number) is added to the HTTP request that will be forwarded to your application, so you can retrieve it.
    2. If the target handset supports the Wireless Messaging API, you can have your application register an SMS connection, using PushRegistry, with a non-standard port. When the user first starts the application, generate some random data and send it to the phone number the user will input on a text field. If the phone number is correct, than you’ll receive the message in a few seconds on the connection you've registered. You can then check the data to see if it matches the data you generated earlier, and if it does, get the sender phone number using
    Code:

    Message.getAddress()

    method and save it to RMS. Note that the default security setting for Wireless Messaging API is "Ask Always", so this will cause security prompts if the midlet is not signed and/or the application security settings are not configured correctly.
    3. If you are using an S60 device, you can write a Symbian C++ application that retrieves the phone number and opens a server socket on 127.0.0.1. The midlet then connects to this localhost socket and retrieves that information. There are some drawbacks to this approach: Your C++ application has to be started on boot, the method used to retrieve the phone number is not portable (if you’re getting only the IMEI code, not the phone number, then it's portable); third, it depends on a C++ application, which greatly increases complexity by itself. There's a project called [URL ="http://www.midpjni.com/"]MIDP JNI[/url] that uses this "bridge" approach to bring native functionality to midlets, so you can retrieve information that otherwise would be only available to C++ applications, such as network and device properties.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  9. #9
    Registered User
    Join Date
    Jan 2007
    Posts
    25

    Question Re: How to get device no. from a j2me app.?

    ya I read it. Raj, please give the link of that zip file again. I hope it will help in this query.

    & please explain the 2nd possibility (using Wireless Messaging API) above in the Q. I havent got it clearly.

    Code:
    Message.getAddress()

  10. #10
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: How to get device no. from a j2me app.?

    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  11. #11
    Registered User
    Join Date
    Jan 2007
    Posts
    25

    Red face Re: How to get device no. from a j2me app.?

    Hey Raj,

    This link is not working. U try with it.

  12. #12
    Registered User
    Join Date
    Jan 2007
    Posts
    25

    Re: How to get device no. from a j2me app.?

    Hey Raj,

    This link is not working. U try with it. Give a working link.

  13. #13
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: How to get device no. from a j2me app.?

    OK,
    No issues..
    Open the google and type System properties +J2ME then fire enter.

    You will find the first link of the Form Nokia..ok
    Then click on that and you can download that file.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  14. #14
    Registered User
    Join Date
    Jan 2007
    Posts
    25

    Re: How to get device no. from a j2me app.?

    i got that file but havent got any way to find the Mobile no.

  15. #15
    Registered User
    Join Date
    Jan 2007
    Posts
    25

    Re: How to get device no. from a j2me app.?

    ok Thanks Raj,

    I got the "MIDP_System_Properties_v1_2_en.zip" file. Its related to MIDP_System_Properties.
    but I havent got any way from that file to find out the mobile no. (+919890.....) from a j2me application.

    do u have any idea?

Page 1 of 2 12 LastLast

Similar Threads

  1. Incoming voice calls not being displayed while in J2ME app
    By noreaga in forum Mobile Java General
    Replies: 3
    Last Post: 2006-09-12, 01:42
  2. Replies: 2
    Last Post: 2005-06-25, 06:03
  3. J2ME Polish Version 1.0
    By enough in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-27, 01:10
  4. Replies: 1
    Last Post: 2002-12-09, 11:31
  5. Get Phone number using j2ME app
    By ibbu_arif in forum Mobile Java General
    Replies: 0
    Last Post: 2002-11-26, 20:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •