Results 1 to 2 of 2
  1. #1
    kazuma_riku73 is offline Member
    Join Date
    Dec 2008
    Rep Power

    Default Urgent! Need help for my final year project!!

    hi, now i face a new problem..

    how do you retrieve your mobile type using j2me.


    using System.getProperty

    when load into the phone..

    it will print out..

    Mobile Model : Nokia E71

    something lyke that..


  2. #2
    kedrik is offline Member
    Join Date
    Jan 2009
    Rep Power

    Default Simple solution

    If you still need some solution:

    You can try System.getProperty("microedition.platform");

    But it's just a general solution, cause you can never be sure about the model of your phone by using any soft installed on it :).

    If you need the full source of MIDlet (just not to bother writing yourselft) try:

    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.StringItem;

    public class TestPlatform extends MIDlet {
    private Display d = null;
    private Form f = null;
    private StringItem model = null;
    public TestPlatform() {
    f = new Form("Test");
    model = new StringItem("Mobile model:", System.getProperty("microedition.platform"));
    public void startApp() {
    if (d == null) {
    d = Display.getDisplay(this);
    public void pauseApp() {}
    public void destroyApp(boolean uncoditional) {

    Best Regards,

Similar Threads

  1. Happy New Year
    By sanjeevtarar in forum Entertainment
    Replies: 7
    Last Post: 12-14-2011, 05:12 AM
  2. Urgent! Need help for my final year project!!
    By kazuma_riku73 in forum Sun Java Wireless Toolkit
    Replies: 7
    Last Post: 06-18-2010, 11:48 AM
  3. GUI Final Project help
    By Unknown in forum New To Java
    Replies: 21
    Last Post: 12-30-2008, 07:58 PM
  4. [SOLVED] is final class members are also final ?
    By haoberoi in forum New To Java
    Replies: 4
    Last Post: 11-10-2008, 03:01 PM
  5. help to complete final part of project
    By dirtycash in forum New To Java
    Replies: 6
    Last Post: 12-31-2007, 06:21 AM

Posting Permissions

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