question: public static void launchEmailIntent ( final Activity activity , String addr , String text ) { Log . i ( LOG_TAG , "Launch email intent from " + activity . getLocalClassName ( ) ) ; Intent emailIntent = new Intent ( Intent . ACTION_SEND ) ; emailIntent . putExtra ( Intent . EXTRA_EMAIL , new String [ ] { addr } ) ; emailIntent . setType ( "text/plain" ) ; PackageManager emailpackageManager = activity . getPackageManager ( ) ; List < ResolveInfo > emailresolveInfos = emailpackageManager . queryIntentActivities ( emailIntent , 0 ) ; if ( emailresolveInfos . size ( ) > 0 ) { activity . startActivity ( emailIntent ) ; } }
target:  Launch an email intent if the device is capable.