jump To System Share Text Activity - Android Activity

Android examples for Activity:Activity Jump

Description

jump To System Share Text Activity

Demo Code


//package com.java2s;

import android.content.Context;
import android.content.Intent;

public class Main {
    public static void jumpToSystemShareText(Context context, String content) {
        Intent sendIntent = new Intent();
        sendIntent.setAction("android.intent.action.SEND");
        sendIntent.putExtra("android.intent.extra.TEXT", content);
        sendIntent.setType("text/plain");
        context.startActivity(sendIntent);
    }/*from ww  w .  jav a  2 s .c  om*/
}

Related Tutorials