[android-developers] Re: what's the equivalent class of java.awt.Image

2009-01-06 Thread hazmatzak
Note that Image is an abstract class. One of the direct known subclasses is BufferedImage, and that is similar to android.graphics.Bitmap. Do you want to replace the AWT logic, or re-implement the missing pieces of AWT the app actually uses? //Ken On Jan 6, 1:51 am, Derek wrote: > Hi, > > I'm

[android-developers] Re: AlertDialogs reused ?

2009-01-05 Thread hazmatzak
   } > >     protected void onPrepareDialog(int id, Dialog dialog) { >         switch (id) { >             case ERROR_DIALOG_ID: >                 AlertDialog alertDialog = (AlertDialog)dialog; >                 alertDialog.setMessage(alertString); >                 //alertDialog.show(); &

[android-developers] Re: Intent to launch image gallery

2009-01-04 Thread hazmatzak
You mean the Pictures app? If you want to launch the app to browse through the images and fiddle with them, if you examine the log when you launch it manually, an Activity is started with an Intent like: new Intent(Intent.ACTION_VIEW, Uri.parse( "content://media/internal/images/media")) If yo

[android-developers] Re: AlertDialogs reused ?

2009-01-04 Thread hazmatzak
Yes, dialogs are reused; that's part of the idea behind having the Activity manage the dialogs. Generally, onCreateDialog is called only once for a given ID (you can use the debugger to verify this). Override onPrepareDialog to modify the created/reused dialog just before it appears. --~--~---

[android-developers] Re: email adress from Contacts.ContactMethods. (again!)

2008-12-22 Thread hazmatzak
You're close. The email address is contained in the DATA column. Using CONTENT_EMAIL_URI automatically selects only emails (KIND=KIND_EMAIL), and only returns the columns _ID, NAME, and DATA. (Internally, it does a join of the "people" and "contact_methods" tables.) You might also sort on ISPRIMAR