Good day.
I made a Midlet MIDP 1.0 CLDC 1.0 that have an Image on Alert class:
this is my code:
Alert al = new Alert("AppTitle");
try {
al.setImage(Image.createImage("/MyApp/myimg.jpg"));
} catch (java.io.IOException e) {
}
al.setTimeout(3000);
al.setType(AlertType.INFO);
display.setCurrent(al);
On Nokia Phones (I've tried Series 40 e 60) the result is that I view on text area Information and near of it (but cutted) the image.
Why?
I have another question:
If I use on Alert class
al.setString("MyApp\nMyName");
within or eithout image On Nokia phones the "\n" idn't considered.
Both problems in others phones (I've tried Motorola and Sony-Ericsson) aren't.
Why?
Best regards and good work.
Stefano Errani

Reply With Quote

