Intent intent = new Intent(Intent.ACTION_EDIT); Uri uri = Uri.fromFile(file); intent.setDataAndType(uri, "text/plain"); startActivity(intent);
Here is my magazine.
Problem:
03-31 11:12: 50.856: E / AndroidRuntime (1879): java.lang.SecurityException: Failure resolution: start Intent {act = android.intent.action.EDIT Date = file: /// storage / emulated / 0 / Android / data / com.myapp / files / Tttttttt.txt typ = text / plain cmp = com.dropbox.android/.activity.TextEditActivity} from ProcessRecord {451f6e18 1879: com.megaebin / u0a10197} (pid = 1879, uid = 10197) is not exported from uid 10038
source share