showAlert() is removed from the latest SDK. You should use AlertDialog for
dialogs...
See sample code below:
http://code.google.com/android/samples/ApiDemos/src/com/android/samples/app/AlertDialogSamples.html

On Fri, Aug 22, 2008 at 11:08 AM, Mark Hansen <[EMAIL PROTECTED]> wrote:

>
> I've been going over a bunch of examples and for the life of me can't
> figure out how to get showAlert to generate a dialog.
>
> I'm fairly new to both Android and Java development so I could easily
> be missing something, but I'm stumped.
>
> This is the menu option selected override in a class that is
> overriding ListActivity (I'm wondering if that isn't the issue?)
>
> Thanks,
> Mark
>
>
>        @Override
>        public boolean onOptionsItemSelected(MenuItem item)
>        {
>                switch(item.getItemId()) {
>                case 0:
>                        showAlert("Menu Item","New
> Post","ok",null,false,null);
>                        return true;
>                case 1:
>                        showAlert("Menu
> Item","Refresh","ok",null,false,null);
>                        fillDataSAX();
>                        return true;
>                case 2:
>                        showAlert("Menu
> Item","Settings","ok",null,false,null);
>                        return true;
>                }
>                return false;
>        }
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to