2016-09-03 2 views

답변

1

앱 디렉토리에 로컬 파일을 저장하고 공유 인 텐트를 사용할 수 있습니다. 이 해결책이 도움이 될 수 있습니다.

Intent sharingIntent = new Intent(Intent.ACTION_SEND); 
Uri file = Uri.parse(path); 
sharingIntent.setType("*/*"); 
sharingIntent.putExtra(Intent.EXTRA_STREAM, file); 
startActivity(Intent.createChooser(sharingIntent, "Share file")); 

이러한 파일 조작은 모두 앱마다 다릅니다. 그러나, http://developer.android.com/reference/android/content/Context.html#getExternalCacheDir%28%29

https://stackoverflow.com/a/6916553/1979882

+0

질문을 공유하는 방법을 지금 파일을 저장하는 방법을 사실상 도움이 될 수있다. 다른 앱에서 읽을 수있는 앱 디렉토리를 얻으려면 어떻게해야하나요? – Bruno

+0

@ 브루노 업데이트 – Vyacheslav

관련 문제