Hi ,
I am working on mobile applications using lwuit.
I am unable to display image.
i am using pulsar eclipse, wireless toolkit and also sprint toolkit.
i am using like this :-
image = Image.createImage("\\photos\flower.png");
Label imglabel=new Label(image);
f.addCommand(imglabel);
The image is stored in the wireless toolkit in folder and path is ==>C:\j2mewtk\2.5.2\appdb\DefaultColorPhone\filesystem\root1\photos.
In other way i tried the following code:-
FileConnection fc = (FileConnection) Connector.open(MobilePartt4.DefaultColorPhone+"/img/Duke");
When i am using the above code i am getting following exception :-
Running with storage root C:\Documents and Settings\Shanti\j2mewtk\2.5.2\appdb\temp.DefaultColorPhone33
Running with locale: English_United States.1252
Running in the identified_third_party security domain
mageeeeeeeeeeeLabel[x=0 y=0 width=0 height=0, text = , gap = 2]
java.lang.IllegalArgumentException: no ':' in URL
at javax.microedition.io.Connector.openPrim(+37)
at javax.microedition.io.Connector.open(+15)
at javax.microedition.io.Connector.open(+6)
at javax.microedition.io.Connector.open(+5)
at MobilePartt4.startApp(+83)
at javax.microedition.midlet.MIDletProxy.startApp(+7)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+80)
Can you please help me.
regards
shanti

Reply With Quote




