Google 드라이브에서 휴대 전화로 파일을 다운로드하고 싶습니다. 지금까지 앱에서 Google 드라이브에 액세스 할 수 있지만 Google 드라이브에서 파일을 선택할 수는 있지만 다운로드 할 수는 없습니다. 휴대 전화의 Google 드라이브 앱에서 할 수 있지만 내 앱에서 해당 작업이 필요합니다. 난 내 응용 프로그램을 통해 Google 드라이브에 접근하고있어이 코드Google 드라이브에서 휴대 전화로 파일을 다운로드하려면 어떻게해야하나요?
public void openFolder() {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()
+ "/Android/data/com.google.android.apps.docs/files/");
intent.setDataAndType(uri, "text/mp3");
startActivity(Intent.createChooser(intent, "Open folder"));
}
. 도움이 필요하십니까? 미리 감사드립니다.