No Image in my cell but there's an image in J2ME wireless toolkit

Hi all,
I'm really lost here. I coded my java code and run it in J2ME wireless toolkit and the image is there, I put the image on the res folder and the image file format is .PNG, its working in the default color phone. However whe send it to my cellphone, sending the .jar file, and after installation, as I run the program, I cant see the image, all UI is ok but not the image. Thanks a lot
Here's the code:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class HelloWorld extends MIDlet implements CommandListener, ItemStateListener
private Form frm;
private Display display;
private TextField txtName;
private TextField txtAge;
String[] genderArray = {"Male", "Female"};
private ChoiceGroup gender;
String[] statusArray = {"Single", "Married", "Widow"};
private ChoiceGroup status;
private Command cmdExit;
public HelloWorld( )
     display = Display.getDisplay(this);
     frm = new Form("Hello World");
     txtName = new TextField("Name: ","",40,TextField.ANY);
     txtAge = new TextField("Age: ","",2,TextField.NUMERIC);
     Image[] imageArray2 = null;
     Image[] imageArray3 = null;
     try {
          Image icon = Image.createImage("/icon.png");
          Image img = Image.createImage("/myPic.png");
          imageArray2 = new Image[] {icon, icon};          
          imageArray3 = new Image[] {icon, icon, icon};
     frm.append(new ImageItem(null, img, ImageItem.LAYOUT_CENTER,null));     
     } catch(java.io.IOException err)
          // Found an error
     gender = new ChoiceGroup("Gender: ",ChoiceGroup.EXCLUSIVE,genderArray,imageArray2);
     status = new ChoiceGroup("Status: ",ChoiceGroup.POPUP,statusArray,imageArray3);
     cmdExit = new Command("Exit",Command.EXIT,1);
     frm.addCommand(cmdExit);
     frm.append(txtName);
     frm.append(txtAge);
     frm.append(gender);
     frm.append(status);
public void startApp( )
     display.setCurrent(frm);
public void pauseApp( )
public void destroyApp(boolean unconditional)
public void commandAction(Command c, Displayable s)
if ( c == cmdExit )
     destroyApp(false);
     notifyDestroyed( );
public void itemStateChanged(Item item)
Thanks.

HI Phoenix_Mj
I'm a beginner in J2ME world and it might happen that I'm be missing some impt step from coding to transferring.
Do I have to configure anything?
Im I right by saying, only the .jar file is then transmitted to the device?
Lastly, where should I put my images? what folder to be specific?
I can't run the application correctly even trying to run it over the OTA....
No images is being displayed...
Please help guys.
By the way thanks, Phoenix_Mj
God Bless to all

Similar Messages

  • HT204291 The audio comes through my speakers fine but there is no image of the film or TV Show on my flatscreen . Has anyone had this problem and solved it?

    The audio is coming through my speakers fine, but there is no image of the TV Show or Film. Has anyone else had this issue and solved it?

    I had the same thing recently when trying to play a video held in my itunes movies folder on my Macbook pro, through the Apple tv airlink to watch on my TV. I could hear the sound play back fine, but there was no picture/video.
    It then dawned on me that the 'Apple tv' box can only show 720p resolution, and I was trying to play back a full hd (1080) video. I converted my footage to 720 (or apple tv version), and it now streams and plays perfectly from macbook to AppleTV.

  • IPhone 5, backlight works but there is no image on the screen. How do I fix the problem or get a replacement?

    I have an iPhone 5 32GB that is less than a year old, I smashed the screen not long ago and had it replaced and now the backlight works but there is no image on the screen. Its fully working apart from the screen, can I get a replacement? Or how else would anyone suggest to fix the problem?

    Make an appointment at the genius bar of your local Apple store or contact AppleCare. Some Apple Stores in the US can replace the display in an iPhone 5 for $149. If it requires more than that, a replacement phone will cost you $229.

  • Image problem with my palm (J2ME Wireless Toolkit)

    Hi,
    I did a basic application. I just show an image and it works perfectly with the J2ME Wireless ToolKit.
    However, when I create the package, convert it and send it on my palm, everything is ok, except the image. It won't appair.
    I get an exception that the image couldn't be found, but when I use the emulator, everything is ok !!!
    The image is in the "res" directory, like it was asked in the manual.
    I tought that everything is encoded (text file or image file) when you create the package. If it's working with the emulator, why is it not working on my palm?

    I had a same problem with my nokia 3650 in J2me the image appears but not on the phone, I think that that is a bug and fixed it this way:
    when you make a jar package, unpack package with winRAR or some archive program in some temp directory and in that directory make a res directory an put the image in it, then repack theese files again including the res directory in a new jar file. It works for me. It looks that J2ME in compiling doesn't change the path, to root but leaves the res directory.

  • No images in editing window, but there in Navigator

    I just installed Service Pack 2 in my Vista Ultimate 32bit operating system.
    After the install I opened PS, CS4 and at first every thing looked ok.
    I then opened an image file, it came up in RAW, I made initial adjustments, and clicked on open image.
    The image shows in the Navigator window, but there's nothing in the main editing window.
    It remains blank.
    If open another window like my browser over PS, and move that window around it leaves a partial image of the browser on top of the image editing window.
    I had been using Photoshop just prior to installing SP2 and everything was working ok.
    I'm hoping that someone else has experienced this problem and has a solution.

    Not really, but did you try to re-install your graphics card driver or a newer one? This kind of issues is almost always related to something going on there and some tools require a special compatibility update for SP2.
    Mylenium

  • Image in a cell but not as background instead as item?

    Hi All,
    I'm building a price list and I will like to add in a cell a picture of the product.
    It's possible to add a picture for each product but when in an another sheet I did lookup will bring the description and also the image?
    I cannot find a way to add picture as an item and not just a background.

    This is not a feature Numbers supports.  You can make a feature request by using the menu item "Numbers > Provide Numbers Feedback":

  • Configuring Remote Front Panels on a Real-Time Target,smart camera,but there is no image in the web page.

    I do see the web page, but the image  itself is not loading.i know a problem is with the installation of the LabVIEW ActiveX plug-in or the IMAQ ActiveX plug-in.  The LabVIEW ActiveX plug-in is required for ALL remote front panel viewing, and the IMAQ ActiveX plug-in is needed for VIs that use the Image Display. how can i do ?where can i get the the IMAQ ActiveX plug-in. help me!

    Got it working, after much experimentation.  Seems to require installing exactly the right combination of items on the RT target, as some items (web services? web configuration? the "application web server"?) apparently run a separate web server - or instance of the web server - on port 80, which prevents remote front panels from being served on that port.

  • I am trying to access a website with everyday videos, but there is no image playback, only sound.

    When i am trying to access the web page, everything goes smooth, but when I get to the video playback, it doesn't show any image, you can only hear the sound playback of the video. I accessed this web site with other web browsers, and it worked just fine, with both image and audio playback. From the same web site, sometimes videos work, but that is very rare, and I don't know what determines this kind of behavior.

    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r45
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/

  • How can I insert an image into a cell in Numbers for iPad?

    Hi,
    is there any way to insert an image inside a cell using Numbers for iPad? I tried doing it on desktop version and it works, then I shared it through iwork.com and downloaded into my iPad and it's showing fine on the iPad ( although there's no way to edit or change the image inside the cell ) but when I try to do the same task on iPad itself, the image always comes floating even if I place the cursor inside a cell before inserting.
    any idea how to do it or if it's even possible?
    thanks.
    John

    Images can be added to cells only as "image fill." Cell fill is an attribute of the cell, not content of the cell. Only cell content can be retrieved by a formula or by copying the content of the cell.
    Copying the cell will also copy its format, including the image fill, but I've found no way to extract the image from the cell.
    Regards,
    Barry

  • Is it possible to link an image to a cell?

    I've got an accounting spreadsheet, but the problem is the accountant also wants to have the original reference invoice for proof, is there a way to perhaps drop the image into a cell and have it able to be expanded or linked to the original image?
    It's probably something I need Bento for or something like that?

    If you have a web site at which you can host the invoices, then you can make a hyperlink to the files using the HYPERLINK function. I tried it with a "hyperlink" to a file on my Mac (file:///User....") but it did not work. This would be my recommendation. You click on the cell and it opens the invoice in your browser.
    You can also drop the invoice image into a cell but you cannot expand it to readable size except by expanding the cell itself. I suppose you could create some full-sheet one-cell tables where you drop invoices but you can't click on a cell in another table and have it automatically navigate to the invoice.

  • IMovie sees my Sony HC3, but there is no imahe

    Hello.
    I just bought the Sony DSR HC3. I can control playback with capture, set in and outs, but there is no image opn the screen.
    Any ideas. I did a search and there was one person that had a the same problem, but there was no resolution in the thread.
    Thanks in advance for your help.
    PS I tried with FCP initially because that is what I use to edit, but thought to try if iMovie worked... no dice

    First-if your mac can control the camera but not see the video,
    *Open Garageband
    *Play a note or two
    *Close Garageband
    *Open iMovie
    The camera should be recognized now.
    If not, look here:
    http://docs.info.apple.com/article.html?artnum=43000
    really!
    Sue

  • X1 Carbon integrated camera working but not showing any image after Windows 8.1 upgrade

    Good afternoon, sundely after I upgraded Windows to version 8.1 64x my integrated camera stopped sending image to any program that uses it, the green light goes on but there is no image. Before worked just fine.I have tried to uninstal and install again camera drivers, installed Lenovo dependency package, etc....no solution.Please help?Thanks Sergio

    I resolved my issue by going to device manager selected View then View Hidden Devices.
    Expand System Devices
    Found two IWD BUS devices and one had the yellow triangle. I uninstalled that item and restarted my Carbon X1 and the error was gone. The original working IWD BUS remains active.

  • Is there any free image that i can use in my flyer

    Hi all,
    i want to ask a question, if i want to use image on apple product such as Macbook pro, iPad image in my flyer, is there any free image that i can use?
    please advice..
    Thanks in Advance

    I doubt anyone here will have a definitive answer as no one here is an Apple Employee, and you are asking a legal question
    In general terms, a designer needing artwork/images from a company will contact that company's public relations section and ask for the images and permissions to reprint them. This usually requires an attribution line under the image, such as, "Photo © Apple Inc. Used with permission."
    Apple Public Relations:
    http://www.apple.com/pr/
    Apple Legal :Trademarks and Copyrights:
    http://www.apple.com/legal/intellectual-property/

  • Tried to reinstall iPhoto library from external hard drive, it shows that the photos and events are there but there are no thumbnails and if you click on an image or video nothing comes up.

    My hard drive crashed recently and we took it to apple to get repaired. The apple employees said that they would have to replace the hard drive but they didn't have the equipment to get the data off my hard drive. So I took it to a computer store who had the right equipment after a month and a half of waiting they finally got all the data off my hard drive and put it on an external hard drive (Seagate Expansion Portable Drive). I then took it back to apple who replaced the hard drive. Now I'm in the process of reinstalling everything. I have never done a Time Machine back up or backed my laptop up to . Which I now will do very often once I've reinstalled everything. I have reinstalled all of my desktop images and folders as well as my iTunes library with no issues. However when i went to reinstall my iPhoto library it came up blank. I then Rebuilt the library several times and this was the result.
    It shows that the photos and events are there but there are no thumbnails and if you click on an image or video nothing comes up.
    Please help i have three years worth of images from holidays on here and would be devastated if i lost them.

    iPhoto cannot find the thumbnails or the original pictures.
    Go to your iPhoto Library in the Pictures Folder.
    Right-click on it and from the resulting menu, choose 'Show Package Contents'.
    This will bring you inside the iPhoto Library package. There you should see a Folder called Masters. Within that, there should be folder containing your actual photos.
    Are they there?

  • Creating project as Disc Image after 1 1/2 hours it appeared to be finished but there was message that there was a multiplex error.  Checked and no yellow triangles, music on computer,  any ideas.

    Creating project as Disc Image after 1 1/2 hours it appeared to be finished but there was message that there was a multiplex error.  Checked and no yellow triangles, music on computer, and all resources on computer,  any ideas??

    Hi
    And
    • free space on Start-Up hard disk ? How Much ?
    • Brand and type of DVD used
    • Burn Speed ?
    • Did You try to first do a "Save as a DiskImage" ? If so - Did it work ?
    Yours Bengt W

Maybe you are looking for

  • Can not start managed server

    Hi All, I am trying to start one of the managed server which are in cluster but i am getting below error: Please suggest the issue and resolution if anyone has come across the same situation. <Oct 14, 2011 7:56:16 AM EDT> <Warning> <RMI> <BEA-080003>

  • How to get a CA certificate installed in the web trust db from java servlet

    Hi all. Hi, I have a web-app that requires a client certificate from a CA. The CA cert is in the trust db of the webserver. And I would like to get the CA certificate (X509Certificate) corresponding to the issuer of the current client certificate of

  • Problems to export logo in PDF

    Hello experts. I have a problem to export a logo logo.bmp to pdf in a web application designer 7.0 Source XHTML is: <img src="bwmimerep:///sap/bw/mime/Customer/Images/LOGO.bmp" border="0" /> If I execute the WAD logo appears in the screen. But when I

  • Websphere JNDI lookup problem

    Hi All Two separate webapps, have different names for Datasources, on the same host and port. Both application work fine independently. When we deploy both applications on the same app server(websphere), whichever we executes first gets its datasourc

  • Cant even get started

    When i open iweb, i get my site and its name. Thats it. I cant start a new page, i cant delete the old one, and cant get the templates, i cant do anything. All i get is a blank page with my site name at the top. I dont even know where to start. Someb