jump To System SMS Activity - Android Activity

Android examples for Activity:Activity Jump

Description

jump To System SMS Activity

Demo Code


//package com.java2s;

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

public class Main {
    public static void jumpToSystemSMSActivity(Context context,
            String number) {//  w  w  w  . j a va2s .  c om
        Intent mIntent = new Intent("android.intent.action.VIEW");
        mIntent.putExtra("address", number);
        mIntent.setType("vnd.android-dir/mms-sms");
        context.startActivity(mIntent);
    }
}

Related Tutorials