Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alert not display on mobile.

 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Zandis Murāns
Ranch Hand
Posts: 174
Java Java ME Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what does happens on that mobile phone? Post source code here.
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It must have been tied to some condition as both are valid...
 
Dushyant Chhetri
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic