This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding ConfirmDialog  RSS feed

 
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am able to get the dialog when i run the program. So below that i have a task which should continue when i press ok and cancel when i press cancel
But when i press cancel also the task continue
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by adeeb alexander:
Hi,
...when i press cancel also the task continue




You are not catching and processing the user choice (OK/Cancel)

You need something like


This is a wrong thing to do


Remember, strings are immutable. So you should be using something like

[ June 14, 2008: Message edited by: Maneesh Godbole ]
 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i have tried doing this but i got the error as not a statement,illegal start of expression,class expected
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by adeeb alexander:
Hi,
i have tried doing this but i got the error as not a statement,illegal start of expression,class expected



On which line?
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!