File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Alert not display on mobile. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Alert not display on mobile." Watch "Alert not display on mobile." New topic

Alert not display on mobile.

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 632

Hello everybody,

I have developed one application. when i run this application on emulator it display the alert but on mobile alert is not display.
why this is happening?

Life is easy because we write the source code.....
Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

So what does happens on that mobile phone? Post source code here.
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 632

My problem was solved.
actually I had write alert as

a1Empty = new Alert("Error","Please fill all details",null,AlertType.Error);
because of this on emulator it display the alert, but on mobile it not. after changing it to

a1Empty = new Alert("Information","Please fill all details",null,AlertType.INFO);
it displays on mibile also.
Peter Miklosko
Ranch Hand

Joined: May 26, 2009
Posts: 76
It must have been tied to some condition as both are valid...
Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
The only difference in various types of alerts is the way the alert is displayed.
In some supported mobiles the alert is displayed accompanied by images of different categories for eac alert type.

I agree. Here's the link:
subject: Alert not display on mobile.
It's not a secret anymore!