Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { public static void callText(Context context, String path) { Intent intent = new Intent(); intent.setDataAndType(Uri.fromFile(new File(path)), "text/plain"); context.startActivity(intent); } }