baku-toolkit/lib/src/main/java/io/v/baku/toolkit/debug/RemoteInspection.java
/**
     * Sends a freshly minted invitation to the given e-mail address. If there is no e-mail client
     * installed, an error is reported to the user.
     */
Sends a freshly minted invitation to the given e-mail address. If there is no e-mail client
installed, an error is reported to the user.
Sends a freshly minted invitation to the given e - mail address . If there is no e - mail client installed an error is reported to the user .
public void emailInvitation(final String email, final ReadableDuration duration) {
        final String content;
        try {
            content = mintInvitation(email, duration);
        } catch (final VException e) {
            onError(R.string.err_inspect_invite, e);
            return;
        }
        final Context context = mVAndroidContext.getAndroidContext();
        final Intent intent = new Intent(Intent.ACTION_SEND);
        intent.setType(EMAIL_MIME_TYPE);
        intent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});
        intent.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.inspect_email_subject));
        intent.putExtra(Intent.EXTRA_TEXT, content);
        if (intent.resolveActivity(context.getPackageManager()) != null) {
            context.startActivity(intent);
        } else {
            onError(R.string.err_inspect_email, null);
        }
    }
public void emailInvitation ( final String email , final ReadableDuration duration ) { final String content ; try { content = mintInvitation ( email , duration ) ; } catch ( final VException e ) { onError ( R . string . err_inspect_invite , e ) ; return ; } final Context context = mVAndroidContext . getAndroidContext ( ) ; final Intent intent = new Intent ( Intent . ACTION_SEND ) ; intent . setType ( EMAIL_MIME_TYPE ) ; intent . putExtra ( Intent . EXTRA_EMAIL , new String [ ] { email } ) ; intent . putExtra ( Intent . EXTRA_SUBJECT , context . getString ( R . string . inspect_email_subject ) ) ; intent . putExtra ( Intent . EXTRA_TEXT , content ) ; if ( intent . resolveActivity ( context . getPackageManager ( ) ) != null ) { context . startActivity ( intent ) ; } else { onError ( R . string . err_inspect_email , null ) ; } }
Sends a freshly minted invitation to the given e-mail address.
Sends a freshly minted invitation to the given e - mail address .