프로그램/Java - Android
content uri로 만들기
FileProvider.getUriForFile(Context context, String authority, File file) 를 사용하자. file : content uri 로 바꿀 file path example code :Uri uri = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName(), file)Intent intent = new Intent(ACTION_EXAMPLE, uri); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); https://developer.android.com/reference/android/support/v4/cont..
2017. 4. 18. 16:20