Message box in android-sdk-windows-0.9_beta

Put your problem here if it does not fit any of the other categories.

Message box in android-sdk-windows-0.9_beta

Postby zahidalinaqvi » Wed Aug 20, 2008 1:03 pm

hello
how we can show a message box in android-sdk-windows-0.9_beta.
in the last version we used showAlert();
now this method is not present in new SDK
so how we can show a message box in new SDK android-sdk-windows-0.9_beta

reply me sooon

zahidalinaqvi@gmail.com
User avatar
zahidalinaqvi
Developer
Developer
 
Posts: 35
Joined: Mon Aug 11, 2008 8:54 am
Location: Jaipur India

Top

Postby stonedonkey » Fri Aug 22, 2008 7:03 pm

I've been digging around trying to figure this out as well, I can't seem to find it in the SDK, of course I'm pretty new so I may be missing something...
stonedonkey
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Aug 22, 2008 7:01 pm

Message box in new SDK

Postby zahidalinaqvi » Sat Aug 23, 2008 5:38 am

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. new AlertDialog.Builder(context).setTitle("Testing").setMessage(
  2.  
  3.                                         "Buy this thing?").setPositiveButton("Yes", yesListener)
  4.  
  5.                                         .setNegativeButton("No", noListener).show();
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


but before this your have to set

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Context context = this;
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


otherwise it will not work.....
User avatar
zahidalinaqvi
Developer
Developer
 
Posts: 35
Joined: Mon Aug 11, 2008 8:54 am
Location: Jaipur India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 21 guests