Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: IMEI Number

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question IMEI Number

    Hi Friends,
    I'm developing device application in JAVA. I want to know how to get IMEI in java. Please help.
    Regards,
    Kalaiyarasi


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,357
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: IMEI Number

    It's hard to answer questions like this other than by pointing you to google. What have you tried? Where are you stuck? What are you confused about?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Member
    Join Date
    Jul 2013
    Posts
    219
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default Re: IMEI Number

    Hello.
    When doing programming, in order to store a value we first need to decide the date type to be used. To decide the data type we need to look at the possible characters used in the value.
    Based on the above statement can you think of storing IMEI?

    syed.

  4. #4
    Junior Member
    Join Date
    Apr 2013
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: IMEI Number

    Hi,
    Here I am giving my sample code,

    import com.nxp.atop.baseband.Baseband;
    import com.nxp.telematics.otp.*;

    public class sms
    {
    Otp otp = OtpFactory.getOtp();
    System.out.println(" get IMEI");
    IMEI imei = otp.getAtopIMEI();
    System.out.println(" result : " + imei );
    }


    But I am getting baseband.Baseband,otp,IMEI cannot be resolved error.I don't know whether it is a version problem or jar file problem.If it is jar file problem means which jar file i have to configure.


    Thanks and Regards,
    Kalaiyarasi.

  5. #5
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,357
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: IMEI Number

    Sounds like a classpath problem. What is on your classpath?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. #6
    Junior Member
    Join Date
    Apr 2013
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: IMEI Number

    It is not a classpath problem,it is a part of task,with out including above code jar file is created successfully.If include above code it giving compilation error

    cannot find symbol
    [javac] symbol : variable OtpFactory
    [javac] location: class myListennerClass
    [javac] Otp otp = OtpFactory.getOtp();

  7. #7
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,357
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: IMEI Number

    Quote Originally Posted by kalaicse30@gmail.com View Post
    It is not a classpath problem
    How can you be so sure? The error you're getting is caused when Java can't find a particular class on the classpath. But if you're so sure, good luck...
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Check if number is prime number or not problem[SOLVED]
    By kinkita in forum Loops & Control Statements
    Replies: 9
    Last Post: July 17th, 2013, 10:59 AM
  2. How do you add a value to a 2-d array by row number and column number?
    By JohnEliot in forum Java Theory & Questions
    Replies: 1
    Last Post: April 14th, 2013, 06:39 AM
  3. Replies: 10
    Last Post: November 8th, 2012, 05:29 AM
  4. Replies: 2
    Last Post: November 7th, 2012, 09:45 PM
  5. Replies: 4
    Last Post: June 10th, 2009, 01:04 AM