MY Midlet works with the emulator... but not in my Palm??

I don t understand why can somebody help me?
I am actually manking some tests .. Here is he complete code of my midlet :
* MyMidlet.java
* Created on 23 f�vrier 2005, 10:50
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
* @author Crazyman
* @version
public class MyMidlet extends MIDlet implements CommandListener, ItemCommandListener, Runnable {
private static Display display;
private static Form FormButton,FormList;
private static List Menu;
private static Thread Th;
private static ChoiceGroup Drop,Check,Pop;
private static boolean StopFlag = false;
private static Command Exit,Main,Select,Start,Stop;
public MyMidlet() {
try
display = Display.getDisplay(this);
String[] elements = {"Button","List"}; //Menu items
Menu = new List("MENU", List.IMPLICIT,elements,null);
Exit = new Command("Exit", Command.EXIT, 1);
Select = new Command("",Command.ITEM,1);
Main = new Command("Main",Command.OK,1);
Start = new Command("Start",Command.ITEM,1);
Stop = new Command("Stop",Command.ITEM,1);
Ticker Tick = new Ticker("Ticker ki sert a rien");
Menu = new List("Menu", List.IMPLICIT, elements, null);
Menu.addCommand(Exit);
Menu.setTicker(Tick);
Menu.setCommandListener(this);
FormButton = new Form ("Button");
StringItem btStart = new StringItem("Start",null,Item.BUTTON);
StringItem btStop = new StringItem("Stop",null,Item.BUTTON);
btStart.setDefaultCommand(Start);
btStart.setItemCommandListener(this);
btStop.setDefaultCommand(Stop);
btStop.setItemCommandListener(this);
FormButton.addCommand(Exit);
FormButton.append(btStart);
FormButton.append(btStop);
FormButton.setCommandListener(this);
FormList = new Form("Listes");
String[] DropArray = {"Drop1","Drop2"};
Drop = new ChoiceGroup("DropList",Choice.EXCLUSIVE,DropArray,null);
String[] PopArray = {"Pop1","Pop2"};
Pop = new ChoiceGroup("PopList",Choice.POPUP,PopArray,null);
String[] CheckArray = {"Check1","Check2"};
Check = new ChoiceGroup("CheckList",Choice.MULTIPLE,CheckArray,null);
FormList.append(Drop);
FormList.append(Pop);
FormList.append(Check);
FormList.addCommand(Main);
FormList.addCommand(Exit);
FormList.setCommandListener(this);
catch( Exception e)
System.out.println(e);
public void startApp() {
display.setCurrent(Menu);
public void pauseApp() {
public void destroyApp(boolean unconditional) {
notifyDestroyed();
public void commandAction(javax.microedition.lcdui.Command cmd, javax.microedition.lcdui.Displayable disp) {
try
if (disp == Menu && cmd == List.SELECT_COMMAND)
String Form2Create = Menu.getString(Menu.getSelectedIndex());
String S = Form2Create;
Menu.append(S, null);
CreateForm(Form2Create);
if(cmd == Exit)
destroyApp(true);
if(cmd == Main)
display.setCurrent(Menu);
catch( Exception e)
System.out.println(e);
public void commandAction(javax.microedition.lcdui.Command cmd, javax.microedition.lcdui.Item item) {
if(cmd == Start)
Th = new Thread(this);
Th.start();
TextField T = new TextField("Started",null,5,TextField.ANY);
FormButton.append(T);
if(cmd == Stop)
StopFlag = true;
TextField T = new TextField("Stoped",null,6,TextField.ANY);
FormButton.append(T);
public void run() {
int v = 0;
while(StopFlag == false)
String S = ""+v;
TextField T = new TextField("",S,5,TextField.ANY);
FormButton.append(T);
display.setCurrent(FormButton);
v++;
public void CreateForm(String F)
try
if(F.equals("Button"))
FormButton = new Form ("Button");
StringItem btStart = new StringItem("Start",null,Item.BUTTON);
StringItem btStop = new StringItem("Stop",null,Item.BUTTON);
btStart.setDefaultCommand(Start);
btStart.setItemCommandListener(this);
btStop.setDefaultCommand(Stop);
btStop.setItemCommandListener(this);
FormButton.addCommand(Main);
FormButton.addCommand(Exit);
FormButton.append(btStart);
FormButton.append(btStop);
FormButton.setCommandListener(this);
display.setCurrent(FormButton);
if(F.equals("List"))
FormList = new Form("Listes");
String[] DropArray = {"Drop1","Drop2"};
Drop = new ChoiceGroup("DropList",Choice.EXCLUSIVE,DropArray,null);
String[] PopArray = {"Pop1","Pop2"};
Pop = new ChoiceGroup("PopList",Choice.POPUP,PopArray,null);
String[] CheckArray = {"Check1","Check2"};
Check = new ChoiceGroup("CheckList",Choice.MULTIPLE,CheckArray,null);
FormList.append(Drop);
FormList.append(Pop);
FormList.append(Check);
FormList.addCommand(Main);
FormList.addCommand(Exit);
FormList.setCommandListener(this);
display.setCurrent(FormList);
catch( Exception e)
System.out.println(e);
}

The Problem is bound with my StringItems i think because when i delete them and i juste display my "FormButton" without anything there are no problems.....
In my palm, the midlet get blocked when i press the button to open the "FormButton" in my menu..
Plz help me..
Thx

Similar Messages

  • Midlet Running in the Emulator but not in the phone?

    Hi everybody,
    I have developped a Midlet using the Sun Wirelees Toolkit, the midlet reads results from a Servlet and print it on a TextBox. It works fine in the emulator but when I deployed it to Nokia 6600 it prints NULL.
    I really don�t know what�s the problem. Bytheway I used thread for sending data from Midlet to Servlet.
    Any Suggestions:) ?
    Thanks for your time and interest,

    I suggest that you find out what the problem is ;)
    Really, we can't smell whats wrong. It could be lots of things...
    Try to de bug the application on the device. The "best" way is to use System.out.println statements, of use a textbox to print the messages. Than check where it goes wrong, and why..

  • MIDLET working fine in emulator but not working on mobile!

    hi,
    i have an application which sends http request (get), it works fine in an emulator but when i install that application onto P900 sonyerricson it doesnot send the request and after sometime gives symbian os error:-33
    pls. let me know the solution!!
    thanks
    regards
    bhaskar

    A WAP access point means you're using a WAP stack, and you have to go through a WAP gateway to get to the internet. With an internet access point you use a TCP/IP stack and so you can "talk" directly to the internet. Look up tutorials about WAP if you want to know more.
    But as far as your MIDlet is concerned, all you have to know is how to change the phone's configuration (manually I mean, not with the J2ME code), so that it uses an internet access point. I don't have a P900 lying around right now, so I don't remember exactly how to configure it, but I'm sure if you search through the SE forums you'll find an explanation,
    shmoove

  • We upgraded our router to Belkin N300. The router will work with the IPad but not our PC. What do we need to do?

    Our PC is about 8 years old. It does not like the new Belkan router. We can receive emails but cannot send or forward the emails. The IPad is working perfectly. Any suggestions?

    First thing to try is reset Printing System:
    OS X Mavericks: Reset the printing system
    Next would be reset the router (power off 15 secs then back on). And, 2 minutes later, reset the printers 1 by 1.

  • Enterprise Mgr works with one db but not the other

    Hi
    We have two Oracle 10g databases installed. Enterprise Manager works with the second, but not the first. I believe the problem started when we migrated the host server to another network domain. Everything else works fine, but I'm getting a page load failure when attempting to access enterprise mgr.
    The second db was installed after the migration and EM works fine.
    Can anyone tell me how to reconfigure this?
    Thank you

    by any change hostname or ip was changed during migration
    also can u paste the emoms.trc ?

  • Windows 8.1 64bit. Webcam works with "Camera" app but not with Skype.

    I've spent a few hours googling and trying out various things - all listed below. I give up - any ideas??? OS: Windows 8.1 64bitMemory: 32GBWebCam: Microsoft VX-7000. As per subject - the webcam works with the "Camera" app but not with Skype for desktop or for Modern UI (or the Microsoft Lifecam software for that matter).  Already attempted: 1) Uninstall webcam drivers - download latest from microsoft (Windows 7) and install in Windows 7 compatibility mode.2) Close (from taskmgr) anything that looks like it might use Webcam. 3) Run Skype for Desktop in Windows 7 and 8 compatibility modes None of the above work. In Skype for Modern UI the webcam doesn't appear in the drop down in Settings - so I can't even select it. In Skype for desktops (version 6.11.32.102) the webcam is found but instead of image I get "Can't start video. Try closing other programs that might be using your webcam". I see from a bit of googling that various people seem to have the same issue (i.e. Webcam works with Camera app but not Skype) - so I'm hopeful someone has found a workaround / fix to this issue and I've just not had the googling skills to find it  Thanks, - Matt Symes

    OK - I appear to have resolved the issue.  I restricted my google terms to [vx-7000 site:microsoft.com "windows 8.1"] Which uncovered this article: http://support.microsoft.com/kb/933311 I noticed there were a couple of Windows 7 x64 specific registry settings that were mentioned so I checked these and they weren't as per the article. In fact - one of the Registry Keys was already used by other software "AI Charger+" which is some ValueAdd software that came with my motherboard. I uninstalled AI Charger+, uninstalled LifeCam driver. Reinstalled LifeCam driver in Windows 7 compatibility mode. Still not working. I returned to the registry and noticed the settings still differed from the above article. I corrected them (which involved not just amending Data but having to add new Values). I then disabled and reenabled the LifeCam from dvcmgmt.msc I was then able to get video from the webcam in the Skype for Desktop preview screen.    

  • The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • Isight works with photo booth but not in ichat or google talk or skype?

    isight works with photo booth but not in ichat or google talk or skype?

    Hi
    Is this an Internal or External iSight ?
    In iChat, in the Video Menu (This is to the right of Buddies and may read Audio) is Camera Enabled Ticked ?
    If it reads Audio open the Connection Doctor from that same menu.
    In the connection Doctor open the Capabilities tab
    Does it say your Internet Connection is too slow ?
    At this point I would need to know which iChat Version.
    However also look in the View Menu.
    Is Show VIdeo Status ticked ?  (this shows green Icons next to your Buddy Pic and those of your Buddies
    Next go to the iChat Menu > Preferences > Video Section
    Do you see a preview here ?
    Re: GoogleTalk
    Have you enabled TALK on your Google Account Settings ?
    You need to have a Google Mail ID (Not any other sort of Google ID)
    Have you downloaded the Intel only Web Browser Plug-in to do Video in a  Web Browser.
    10:48 PM      Tuesday; August 30, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • My firewire port works with ext hd but not with audio interface

    2010 Imac 21.5 running 10.8.5. My firewire port works with ext hd but not with audio interface. The local authorized Apple tech said that I need a new motherboard, but my firewire ext drive works perfectly. I don't understand. Thanks.

    You must go to the website of the audio interface manufacturer and look for, download and install updated drivers for the audio device you are using.
    This is not, neccessarily, an Apple issue.

  • My applet works in the appletviewer but not in the navigator

    My applet works in the appletviewer but not in the navigator
    exceptions problem1 and problem2 are throwed
    this is my code
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ValiderHtml extends Applet implements ActionListener {
    JButton send =new JButton("Connexion");
    JScrollPane jscrollpane= new JScrollPane();
    DefaultListModel lignes=new DefaultListModel();
    JList lstURL = new JList(lignes);
    BufferedReader reader = null;
    String ligne;
    URL url;
    URLConnection conn;
       public void init(){   
       this.setSize(900,400);
       setLayout( new GridLayout(2,1));
       jscrollpane.setBounds(new Rectangle(19,53,160,73));
       jscrollpane.getViewport().add(lstURL,null);
       send.addActionListener(this);
            this.add(send);
       this.add(jscrollpane);
        public void actionPerformed(ActionEvent evt) {
             Send();
       public void Send(){
            try {
       url=new URL("http://www.developpez.com");
       conn = url.openConnection();
       reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    while ((ligne = reader.readLine()) != null) {
                     lignes.addElement(ligne);
        }//fin bloc try
       catch (Exception e) {
                   lignes.addElement("probleme1");     
                finally{
                   try{reader.close();}catch(Exception e){ lignes.addElement("probleme2");}
       }// fin Send
          public void paint(Graphics g) {
                super.paint(g);
    }// fin Applet

    As for tracking the source of your problem your applet sucks.
    Try e.printStackTrace() on a cought exception and check the (full) trace.
    url=new URL("http://www.developpez.com");
    Unless yor applet is on www.developpez.com this will throw an exception in an unsigned
    applet without special policies.
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and last post for the java class file
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore

  • Does airplay mirror only work with the ipad2 and not ipad1

    does airplay mirror only work with the ipad2 and not ipad1

    But can it still stream video wirelessly?
    For example, with the Digital AV Adapter I can watch video on my TV, but obviously it's wired.
    I'd like a wireless option.

  • Firefox does not open, but instead gives the error message, "Failed to read the configuration file." It has worked in the past, but not now.

    Firefox does not open, but instead gives the error message, "Failed to read the configuration file." It has worked in the past, but not now.
    I REINSTALL 10 TIMES SO DON'T TELL ME THAT!!!
    I'm piss because i need firefox working again so i can finish reseaching my speech in 5 days.

    Which files do you have in the defaults\pref folder in the Firefox program folder?
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    See also "Other solutions":
    *http://kb.mozillazine.org/Preferences_not_saved
    Do a clean reinstall and delete the Firefox program folder before (re)installing a fresh copy of the current Firefox release.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 22.0: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you lose personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    YEAY!
    I just got the solution (that worked for me, anyway) from a Sony support rep. No PC or VMWare needed.
    OK, you've installed Sony eBook Library v3, and Adobe Digital editions, you've set up your acocunts and authorized your computer on both of them, and you've authorized your Reader with the Sony Library application.
    You go to the public library ebook download page, either through the Sony Library or just through a bookmark.
    You check out a book, and open it in Adobe Digital Editions, which still won't recognize your Reader.
    BUT, in the Sony Library app, you can now click "File, Import.." and go find the pdf you downloaded with the Adobe app.
    On my Mac, it was in ~/Documents/Digital Editions
    Import it, and drag it to your Reader.
    The first time you do this, it will ask you to authorize the Reader with your Adobe ID.
    Worked like a charm.

  • How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    Photos that were synced from a computer won't show for copying to a computer. If you want to copy them back then you will need a third-party app on your phone such as Simple Transfer which can copy them off via your wifi network. But photos are 'optimised' when they are synced to a device, any that you then copy back to a computer may not be exactly the same as they originally were on your computer (e.g. their dimensions might be different and their colours may look a bit different).

  • The screen on my iPhone is frozen and I can access apps through Siri. The touch screen works within the apps but not in the home screen. What do I do?

    the screen on my iPhone is frozen and I can access apps through Siri. The touch screen works within the apps but not in the home screen. What do I do?

    Have you tried a reset which is similar to a computer restart and is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release?

Maybe you are looking for

  • Problem to create a link with parameters using a PL/SQL function body

    Hi everybody, I need some help to create a link on a SELECT statement. I have a region report with type "PL/SQL function body return SQL query". I would like to use a link using HTML tag <a href>. I know how to do the link, but I don't know to pass a

  • Address Book -- Importing CSV File created by Numbers

    I'm trying to import a csv file generated from MS outlook into address book. When I attempt to import the csv file that Outlook created, Address Book is able to recognize the file. However, I need to modify the file before importing. To do that, I op

  • How to get the 0 in front of a number

    I have a table column with number data type. How to get the column including the 0 in the front. For example: 066666 i want get 66666, not 066666. Thanks.

  • Can you help me with this code

    hi am new to java so please bare with me , so in this code as you can see i comment some lines of code the one i comment works when i compile it , but why the one with fields does not ? can you please explain this to me public class Demo3            

  • My safari "favorites" disappeared, is there any way I can restore them?

    My safari "favorites" disappeared on my iPad Air. The bookmarks icon is there but when I select it,  it says the page is invalid. Any way I can restore them?