AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.HoneycombMR1Util Class Reference

Static Public Member Functions

static Uri getContentUri ()
 
static Uri getPhoneContentUri ()
 
static Uri getDataContentUri ()
 
static String[] getContactProjection ()
 
static String[] getNameProjection ()
 
static String[] getDataProjection ()
 
static String[] getEmailAdapterProjection ()
 
static int getIdIndex (Cursor contactCursor)
 
static int getContactIdIndex (Cursor contactCursor)
 
static int getNameIndex (Cursor contactCursor)
 
static int getThumbnailIndex (Cursor contactCursor)
 
static int getPhotoIndex (Cursor contactCursor)
 
static int getPhoneIndex (Cursor dataCursor)
 
static int getEmailIndex (Cursor dataCursor)
 
static int getMimeIndex (Cursor dataCursor)
 
static String getPhoneType ()
 
static String getEmailType ()
 
static String getDisplayName ()
 
static String getEmailAddress ()
 
static String getDataMimeType ()
 
static Cursor getDataCursor (String id, Activity activityContext, String[] dataProjection)
 
static InputStream openContactPhotoInputStreamHelper (ContentResolver cr, Uri contactUri)
 
static String getTimesContacted ()
 

Detailed Description

Helper methods for calling methods added in HONEYCOMB_MR1 (3.1, API level 12)

Definition at line 29 of file HoneycombMR1Util.java.

Member Function Documentation

◆ getContactIdIndex()

static int com.google.appinventor.components.runtime.util.HoneycombMR1Util.getContactIdIndex ( Cursor  contactCursor)
static

Get the Data.CONTACT_ID index for PhoneNumberPicker.

Definition at line 118 of file HoneycombMR1Util.java.

◆ getContactProjection()

static String [] com.google.appinventor.components.runtime.util.HoneycombMR1Util.getContactProjection ( )
static

Get the CONTACT_PROJECTION for ContactPicker.

Definition at line 58 of file HoneycombMR1Util.java.

◆ getContentUri()

static Uri com.google.appinventor.components.runtime.util.HoneycombMR1Util.getContentUri ( )
static

Get the CONTENT_URI from ContactsContract to instantiate a ContactPicker.

Definition at line 37 of file HoneycombMR1Util.java.

◆ getDataContentUri()

static Uri com.google.appinventor.components.runtime.util.HoneycombMR1Util.getDataContentUri ( )
static

Get Data.CONTENT_URI for EmailAddressAdapter.

Definition at line 51 of file HoneycombMR1Util.java.

◆ getDataCursor()

static Cursor com.google.appinventor.components.runtime.util.HoneycombMR1Util.getDataCursor ( String  id,
Activity  activityContext,
String[]  dataProjection 
)
static

Gets the dataCursor for ContactPicker and PhoneNumberPicker (used for Email and Phone).

Definition at line 192 of file HoneycombMR1Util.java.

◆ getDataMimeType()

static String com.google.appinventor.components.runtime.util.HoneycombMR1Util.getDataMimeType ( )
static

Get Data.MIMETYPE for EmailAddressAdapter.

Definition at line 185 of file HoneycombMR1Util.java.

◆ getDataProjection()

static String [] com.google.appinventor.components.runtime.util.HoneycombMR1Util.getDataProjection ( )
static

Get the DATA_PROJECTION for ContactPicker and PhoneNumberPicker.

Definition at line 84 of file HoneycombMR1Util.java.

◆ getDisplayName()

static String com.google.appinventor.components.runtime.util.HoneycombMR1Util.getDisplayName ( )
static

Get Data.DISPLAY_NAME for EmailAddressAdapter.

Definition at line 171 of file HoneycombMR1Util.java.

◆ getEmailAdapterProjection()

static String [] com.google.appinventor.components.runtime.util.HoneycombMR1Util.getEmailAdapterProjection ( )
static

Get the NEW_PROJECTION for EmailAddressAdapter.

Definition at line 98 of file HoneycombMR1Util.java.

◆ getEmailAddress()

static String com.google.appinventor.components.runtime.util.HoneycombMR1Util.getEmailAddress ( )
static

Get Email.ADDRESS for EmailAddressAdapter.

Definition at line 178 of file HoneycombMR1Util.java.

◆ getEmailIndex()

static int com.google.appinventor.components.runtime.util.HoneycombMR1Util.getEmailIndex ( Cursor  dataCursor)
static

Definition at line 147 of file HoneycombMR1Util.java.

◆ getEmailType()

static String com.google.appinventor.components.runtime.util.HoneycombMR1Util.getEmailType ( )
static

Get Email.CONTENT_ITEM_TYPE.

Definition at line 164 of file HoneycombMR1Util.java.

◆ getIdIndex()

static int com.google.appinventor.components.runtime.util.HoneycombMR1Util.getIdIndex ( Cursor  contactCursor)
static

Get the Contacts._ID index for ContactPicker.

Definition at line 111 of file HoneycombMR1Util.java.

◆ getMimeIndex()

static int com.google.appinventor.components.runtime.util.HoneycombMR1Util.getMimeIndex ( Cursor  dataCursor)
static

Definition at line 151 of file HoneycombMR1Util.java.

◆ getNameIndex()

static int com.google.appinventor.components.runtime.util.HoneycombMR1Util.getNameIndex ( Cursor  contactCursor)
static

Get the Contacts.DISPLAY_NAME index for ContactPicker.

Definition at line 125 of file HoneycombMR1Util.java.

◆ getNameProjection()

static String [] com.google.appinventor.components.runtime.util.HoneycombMR1Util.getNameProjection ( )
static

Get the NAME_PROJECTION for PhoneNumberPicker.

Definition at line 71 of file HoneycombMR1Util.java.

◆ getPhoneContentUri()

static Uri com.google.appinventor.components.runtime.util.HoneycombMR1Util.getPhoneContentUri ( )
static

Get the CONTENT_URI from Phone for PhoneNumberPicker.

Definition at line 44 of file HoneycombMR1Util.java.

◆ getPhoneIndex()

static int com.google.appinventor.components.runtime.util.HoneycombMR1Util.getPhoneIndex ( Cursor  dataCursor)
static

Definition at line 143 of file HoneycombMR1Util.java.

◆ getPhoneType()

static String com.google.appinventor.components.runtime.util.HoneycombMR1Util.getPhoneType ( )
static

Get Phone.CONTENT_ITEM_TYPE.

Definition at line 157 of file HoneycombMR1Util.java.

◆ getPhotoIndex()

static int com.google.appinventor.components.runtime.util.HoneycombMR1Util.getPhotoIndex ( Cursor  contactCursor)
static

Get the Contacts.PHOTO_URI index for ContactPicker.

Definition at line 139 of file HoneycombMR1Util.java.

◆ getThumbnailIndex()

static int com.google.appinventor.components.runtime.util.HoneycombMR1Util.getThumbnailIndex ( Cursor  contactCursor)
static

Get the Contacts.PHOTO_THUMBNAIL_URI index for ContactPicker.

Definition at line 132 of file HoneycombMR1Util.java.

◆ getTimesContacted()

static String com.google.appinventor.components.runtime.util.HoneycombMR1Util.getTimesContacted ( )
static

Get Data.TIMES_CONTACTED for EmailAddressAdapter.

Definition at line 212 of file HoneycombMR1Util.java.

◆ openContactPhotoInputStreamHelper()

static InputStream com.google.appinventor.components.runtime.util.HoneycombMR1Util.openContactPhotoInputStreamHelper ( ContentResolver  cr,
Uri  contactUri 
)
static

Gets the contact photo InputStream for MediaUtil.

Definition at line 205 of file HoneycombMR1Util.java.


The documentation for this class was generated from the following file: