Running midlet on actual device

I am just beginning to learn Java WTK. Can anyone give me steps by steps instruction on how to port a midlet (a simple 'Hello World' midlet) fully workable on the emulator onto the actual device? I am using a LG G7100 although I am also interested in Nokia.

You ever find an answer? I have an LG VX5200 phone which is supposed to support Java. But aside from downloading Java apps from other sites I'm trying to figure out which folder on the phone's filesystem you place the file. With BitPIM and QPST you can view the phone's filesystem. But as yet to find either a folder that works or combination of settings to get it to show up on the phone list of apps.
I had hoped that maybe someone had downloaded a game from a site and then looked at the phone to see where and how it's stored. I can't from where I'm at.
Michael

Similar Messages

  • Problem in executing MIDlet on Actual Device

    Below is the program i got from net, this is executing fine in the emulator but when I ported the application to actual device i.e. Nokia 7610, data was not fetched from the given URL, neither i got any exception nor error.
    I have WAP connection enabled on my mobile and also I was able to browse the same URL from the default browser that was there in the mobile.
    J2ME: The Complete Reference
    James Keogh
    Publisher: McGraw-Hill
    ISBN 0072227109
    // jad file (Please verify the jar size first)
    MIDlet-Name: httpconnection
    MIDlet-Version: 1.0
    MIDlet-Vendor: MyCompany
    MIDlet-Jar-URL: httpconnection.jar
    MIDlet-1: httpconnection, , httpconnection
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-1.0
    MIDlet-JAR-SIZE: 100
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import java.io.*;
    public class httpconnection extends MIDlet implements CommandListener {
    private Command exit, start;
    private Display display;
    private Form form;
    public httpconnection ()
    display = Display.getDisplay(this);
    exit = new Command("Exit", Command.EXIT, 1);
    start = new Command("Start", Command.OK, 1);
    form = new Form("Http Con");
    form.addCommand(exit);
    form.addCommand(start);
    form.setCommandListener(this);
    public void startApp()
    display.setCurrent(form);
    public void pauseApp()
    public void destroyApp(boolean unconditional)
    public void commandAction(Command command, Displayable displayable)
    if (command == exit)
    form=null;
    display.setCurrent(null);
    display=null;
    destroyApp(false);
    else if (command == start)
    HttpConnection connection = null;
    InputStream inputstream = null;
    try
    connection = (HttpConnection) Connector.open("http://www.someURL.com");
    //HTTP Request
    connection.setRequestMethod(HttpConnection.GET);
    connection.setRequestProperty("Content-Type","//text plain");
    connection.setRequestProperty("Connection", "close");
    // HTTP Response
    System.out.println("Status Line Code: " + connection.getResponseCode());
    System.out.println("Status Line Message: " + connection.getResponseMessage());
    if (connection.getResponseCode() == HttpConnection.HTTP_OK)
    System.out.println(
    connection.getHeaderField(0)+ " " + connection.getHeaderFieldKey(0));
    System.out.println(
    "Header Field Date: " + connection.getHeaderField("date"));
    String str;
    inputstream = connection.openInputStream();
    int length = (int) connection.getLength();
    if (length != -1)
    byte incomingData[] = new byte[length];
    inputstream.read(incomingData);
    str = new String(incomingData);
    else
    ByteArrayOutputStream bytestream =
    new ByteArrayOutputStream();
    int ch;
    while ((ch = inputstream.read()) != -1)
    bytestream.write(ch);
    str = new String(bytestream.toByteArray());
    bytestream.close();
    form.append(str);
    System.out.println(str);
    connection.close();
    catch(IOException error)
    System.out.println("Caught IOException: " + error.toString());
    finally
    if (inputstream!= null)
    try
    inputstream.close();
    catch( Exception error)
    /*log error*/ }
    if (connection != null)
    try
    connection.close();
    catch( Exception error)
    /*log error*/
    Please help me out what are the things I have to do to run this MIDlet on my Nokia 7610.
    Thanks in advance.

    You ever find an answer? I have an LG VX5200 phone which is supposed to support Java. But aside from downloading Java apps from other sites I'm trying to figure out which folder on the phone's filesystem you place the file. With BitPIM and QPST you can view the phone's filesystem. But as yet to find either a folder that works or combination of settings to get it to show up on the phone list of apps.
    I had hoped that maybe someone had downloaded a game from a site and then looked at the phone to see where and how it's stored. I can't from where I'm at.
    Michael

  • Running MIDlet on PC?

    Hi. I'm pretty new to Java ME, so excuse me if this question sounds stupid :-). i was searching for answer for several hours, but couldn't find anything.
    Is it possible to run MIDlet on PC outside the emulator, ie. using command line like
    kvm -classpath ../my/classpath my.package.MyClassThe thing is, i wrote a midlet which works fine in emulator, but I wanted to try running it outside the emulator. When i run the command as above, i get a message like "can not create class in system package".
    Also, can anybody explain or provide a link to how to install and run midlet on actual device? Is it enough to only download it and start KVM or are there additional steps required?
    Thanks in advance for your answers.

    Try to find line where execution stops.
    PrintOnScreen.print("line 100");
    anyFunc();
    PrintOnScreen.print("line 102");
    May be anyFunc() is synchronized, somewhat inside anyFunc() is syncronized or function waits for something.
    Does readUTF play role of anyFunc in your case?
    Try using flush() (when writing)
    check what result available() returns
    (Returns the number of bytes that can be read from this input stream without blocking.)
    Message was edited by:
    learnphysics
    Message was edited by:
    learnphysics

  • Solution: Stack traces on actual devices

    I've created a tool to work around one of the major problems when developing for CLDC: getting proper stack traces. Using the tool you get stack traces (with correct line number info) on exception situations also when running MIDlets on real devices. You can redirect the trace to any desired destination (e.g. a log file).
    There isn't much documentation yet but it works and it's a real time saver. Check it out at [http://jarrut.sourceforge.net].

    I believe this does what you're talking about.
    yourLoggerName.error("your error message",yourException);Since you are using log4j, check their documentation about the methods:
    http://logging.apache.org/log4j/docs/api/index.html
    While there, look up debug, info, warn, error, fatal, and if you are using a recent version of log4j also see trace. You'll want the methods that pass the message and Throwable.

  • "Application Error"  While running application in real device

    HI all,
    When i run application on real device( Nokia 7360), It gives me Application Error
    My application is running well in wireless toolkit Emulator..
    I dont know why this is happining on real device?...
    regards
    Pravin

    Here is the code
    It just create a new contact in the AddressBook
    and i use Nokia 7360 for running my application
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.pim.*;
    import java.util.Enumeration;
    public class AddContact extends MIDlet implements CommandListener,Runnable
         Form form;
         Display display;
         Command exit;
         Command add;
         Alert alert;
         public Thread th;
    private boolean quit = false;     
         public AddContact()
         display = Display.getDisplay(this);
         form = new Form("Add Contact");
         exit = new Command("Exit",Command.EXIT,1);
         add = new Command("Add Contact",Command.OK,1);
         alert = new Alert("Add Contact","Contact Added Succesfully",null,null);
         alert.setTimeout(Alert.FOREVER);
         form.addCommand(add);     
         form.addCommand(exit);
         form.setCommandListener(this);
         public void startApp()
              display.setCurrent(form);
              th = new Thread(this);  
         public void pauseApp()
         public void destroyApp(boolean unconditional)
          public void commandAction(Command c, Displayable d) {
               if(c==exit)
                   destroyApp(false);
                         notifyDestroyed();
              else if (c == add)
                        if(!quit)
                        th.start();
                        display.setCurrent(alert);
         public void quit()
         quit = true;
         public void run()
         while (!quit)
              try
              PIM pim = PIM.getInstance();
              ContactList cl = null;
              Contact new_contact = null;
              Enumeration read_contact = null;
              String final_no="";
              try
                   cl = (ContactList)pim.openPIMList(PIM.CONTACT_LIST,PIM.READ_WRITE);
              catch(PIMException pime)
                   Alert alert_1 = new Alert("Error","Error Accessing Database"+pime,null,null);
                   alert_1.setTimeout(Alert.FOREVER);
                   alert_1.setType(AlertType.ERROR);
                   display.setCurrent(alert_1);
              catch(SecurityException se)
                   Alert alert_2 = new Alert("Error","Security Error"+se,null,null);
                   alert_2.setTimeout(Alert.FOREVER);
                   alert_2.setType(AlertType.ERROR);
                   display.setCurrent(alert_2);
              new_contact = cl.createContact();
              new_contact.addString(Contact.TEL,Contact.ATTR_HOME,"123456");
              new_contact.addString(Contact.FORMATTED_NAME,Contact.ATTR_NONE,"AasdD");
              new_contact.addString(Contact.TEL,Contact.ATTR_MOBILE,"2634465");
              new_contact.addString(Contact.TEL,Contact.ATTR_FAX,"+91 7834465");
              new_contact.addString(Contact.TEL,Contact.ATTR_PAGER,"7034465");
              new_contact.addString(Contact.TEL,Contact.ATTR_MOBILE,"9234465");
              try
                   new_contact.commit();
              catch(PIMException piem)
                        Alert alert_4 = new Alert("Error","Error while saving  Data"+piem,null,null);
                        alert_4.setTimeout(Alert.FOREVER);
                        alert_4.setType(AlertType.ERROR);
                        display.setCurrent(alert_4);
              try
                   cl.close();
              catch(PIMException piem)
                   Alert alert_5 = new Alert("Error","Error Closing Application"+piem,null,null);
                        alert_5.setTimeout(Alert.FOREVER);
                        alert_5.setType(AlertType.ERROR);
                        display.setCurrent(alert_5);
              catch (Exception e)
                   Alert alert_4 = new Alert("Error","Error on first try"+e,null,null);
                   alert_4.setTimeout(Alert.FOREVER);
                   alert_4.setType(AlertType.ERROR);
                   display.setCurrent(alert_4);
              quit();
         

  • Executing a downloaded midlet out of the running midlet, possible?

    hi,
    I want to create a midlet that
    - connects to a server (over http) [found lots of tutorials for this case]
    - there the user can choose from a list of midlets
    - than download a midlet (the jar archiv and the jad file)
    - this downloaded midlet should be saved anywhere on the mobile device
    - and should be executed.
    Is this possible?
    Can I start a midlet out of another midlet (which is for example stored over the RMS)?
    Furthermore is it possible to start any other application out of an running midlet (for example I want to play a downloaded flash file [my device supports flash])?
    I'm using the motorola a920, which supports MIDP 1.0 und CLDC 1.0.
    thx
    matt

    In MIDP 1.0 that isn't possible. But I recall the A920 being a MIDP 2.0 device, in which case there's a method that might be able to do that called platformRequest(). The spec is very general about it, so it's capabilities vary from phone to phone (the only thing required of this method is to display a URL in a browser, but it could be used for a bunch of other things). I don't know what are the capabilities on the A920.
    On the other hand, Motorola handsets usually have a lot of extension APIs, so maybe that's also something to look at.
    shmoove

  • Fail to run on my iOS device

    When updating Xcode 3 to Xcode 4 and running on my ios device, it said: "The version of iOS on “ sen” doesn't match any of the versions of iOS supported for development with this installation of the iOS SDK."
    I couldn't change the Deployment Target to ios5. The leatest version I could change is 4.3.
    How to fix it???
    Thanks in advance.

    What version iOS is on your device?
    Did you go to Xcode Preferences/Downloads/Components and install support for 4.3 devices?

  • App made in Flash run SLOW on Android device

    Hi everyone! I´ve made a test of an intro for an app in Flash CC 2014. Air for Android. It´s about 100 frames. Only the intro. This intro is about some banners that have a little blury effects and motion. When I preview it on my Notebook, runs perfect. But when I publish it for device and test it on my Samsung Galaxy Tab 2 runs VERY SLOW. What can I do?! Does anybody have an advice for me? I´m new at this. I´ll apreciate your tips. Maybe I´m doing things in flash that can´t run properly in android devices. I also must say that I´m working with symbols (about 15) that are brought from Photoshop in .PNG. But low resolution. I´m not working with Flash generated images or Vectors from Illustrator. Well, think thats it. Thanks!

    Hi,
    Could you please share your content for us to understand the issue?
    Thanks!
    Mohan

  • Music files not loading in Simulator (yet functioning in actual device)

    Hi all.
    I'm toying with music, just to add some sound effects to an application, and I'm facing a weird behavior from the iPhone Simulator.
    The sounds work perfectly in the actual device: I've used the AVAudioPlayer class and I've put some .aif files in the bundle: at runtime they are found, properly load and played.
    If I try the very same thing using the iPhone Simulator, the initWithContentsOfURL fails and the returned error description is:
    Error Domain=NSOSStatusErrorDomain Code=-50 "Operation could not be completed. (OSStatus error -50.)"
    I'm not able to find what's the meaning of such a Code, so I'm not able to understand what's wrong...
    Any help?
    Thank you in advance!
    Alessandro
    P.S.: I've checked that the aif files are in the application bundle loaded in the Simulator.

    Oops... I've realized a little late that this is not the proper forum to ask this kind of questions...
    I'll find a better place for it.
    It's really funny...

  • HT1420 How do you find list of actual devices that are connected to your itunes account?  I'd like to know before deauthorizing, exactly what devices it is showing as connected

    How do you find list of actual devices that are connected to your itunes account?  I'd like to know before deauthorizing, exactly what devices it is showing as connected

    Click here and ask. If the iTunes Store staff doesn't give it to you, no.
    (86004)

  • Need to run midlet from another midlet

    Need to run midlet from another midlet
    How to do it?
    In my midlet user get link to web-page, and i want to start mobile browser with this page.

    Hi,
    In order to run midlet from another midlet you may use push registry. Go through the API of that I am not sure but as far as I know push registry is the only solution to that
    Sunil
    Software Developer - J2ME

  • I can drag music from my Itunes library to my device on my computer but I cannot find the music on my actual device.

    I can drag music from my Itunes library to my device on my computer  but I cannot find the music on my actual device.
    Any help here?

    Restore the old computer's library from a backup, or follow the instructions here or here.
    (109578)

  • HT202759 Do you need to have the latest iCloud running to sync all devices?   Thanks.

    Do you need to have the latest iCloud running to sync all devices?   Thanks.

    Thank you.   New, but similar issue.  Running XP and early iCloud on laptop.  iOS 8+ on iPad and iPhone.  Photos do not sync from iPad to itunes to iPhone Nor from iPhone to iPad. Both iOS devices are configured exactly the same.  This leads me conclude that my laptop running XP is the weak link.  Make sense? 

  • Problems Running my App on actual Devices

    I am having issues when trying to connect iphones and ipads to xcode in organizer, what can I do to fix this?
    "Valid signing identity not found" (status for all of my Provisioning Profiles)
    - I am a part of the IOS Developer Program ($99/year).
    - I have used the launch assistant in the IOS Provisional Portal a few times to create new Provisioning Profiles and obtain Certificates.
    - I have downloaded the profiles and certificates to xcode and keychain access.
    - I have tried this on two different computers (1.actual mac, 2.mac vmware on windows)
    I tried deleting the provisioning profiles and creating new ones to see if that would correct this problem and It didn't work.
    I tried deleting the certificates in Keychain Access and re-downloading them and that didn't correct anything.
    I accidentally deleted to login keys (public and private) when deleting the certificates, and I can't figure out how to get those back(so that's another problem).
    I have since realized that I needed to authorize my computer, so I have done that.  I think that may have been the problem but the deleted keys are holding me back(correct me if you feel I'm wrong on that).
    What can I do to connect my devices to xcode?

    Problem solved:
    I deleted everything in Keychain Access, Xcode, and developer.apple.com that had to do with the certificates profiles and devices. then I used the launch assistant to make a new provisioning profile.

  • Runtime Error, when running midlet.

    I can build the midlet without problems. This error occurs when the emultator starts the midlet. I can se the phone for a sec or two then i turns of and the error occurs in the console.
    I am using, j2me, eclipse, eclipseme, cldc1.1,mipd2.2.
    Running with storage root DefaultColorPhone
    java.lang.ClassNotFoundException
         at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
         at com.sun.midp.midlet.Scheduler.schedule(+52)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+116)
    Execution completed.
    705709 bytecodes executed
    5 thread switches
    739 classes in the system (including system classes)
    3582 dynamic objects allocated (97424 bytes)
    1 garbage collections (0 bytes collected)
    I am not sure about whats wrong. Isn't is supposed to be a class name the exception. like this.
    java.lang.ClassNotFoundException. xxxxxxxxxxxxx
    So i know in what class the exception occurs.??
    Anyhow, anyone that has any clue what could be wrong?
    Seems to be an error with the emulator not with the build priocess.
    I get the same error while triyng to run it with ktoolbar.
    thnx

    I can assure of one thing.. there is no such message anywhere
    in the
    product. You should get the actual message from your user and
    let us know
    what it is.
    Mike
    ====================
    Mike Baker
    Adobe Community Expert
    mike-baker at cox dot net
    "webacity" <[email protected]> wrote in
    message
    news:gfuorj$ebe$[email protected]..
    > Hi
    >
    > One of our users has reported to a error when running an
    authorware
    > session in
    > Vista:
    >
    > "I get the message when trying to open the session...
    >
    > It says:
    >
    > Authorware runtime does not work anymore.."
    >
    > Any ideas why this user is getting this problem?
    >
    > thanks
    > Jon
    >

Maybe you are looking for

  • Miro failed when purchase an asset

    Hi Guys, I have purchase an asset which have not a material and will be valuated during miro. Then when miro system prompted an error, said "Account determination for entry INT WRX not possible". I try to maintain account determination in OBYC, seems

  • Automatic Outbound Processing

    Hi, I have a requirement for generating the outbound delivery for one item category whenever goods receipt happens for the inbound delivery of another item category of the same Sales Order. Could you please suggest me how we can achieve this. Is ther

  • Gettting attachments using JAVAMAIL

    Hi, I am dealing with an application which wants me to go through the mailbox and get the attachments of specific emails. These attachments are of different kinds. The attachments can vary from being rtf document, to Word, html, fo.. documents.. I go

  • Modlue programming guide!

    Need some help in module pool programming guide !

  • IDoc on HTTP adapter

    Hi, what are the steps to post idoc on HTTP adapter. Regards, Anurag