I need to show progress dialog when Google drive app downloads file content from web. I used Intent.ACION_GET_CONTENT to get files from Google Drive. The problem is Drive app takes too much time to download the file content and at that time my app looks like it got stuck at somewhere. Sorry for my bad english.
This is my intent
Intent getContentIntent = new Intent(Intent.ACTION_GET_CONTENT);
getContentIntent.addCategory(Intent.CATEGORY_OPENABLE);
getContentIntent.setType("text/plain");
String [] mimeTypes={"application/vnd.oasis.opendocument.text","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12","text/plain"};
getContentIntent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);
Intent intent = Intent.createChooser(getContentIntent, "Import Document");
activity.startActivityForResult(intent, com.test.app.Constants.REQUESTCODES.FILE_CHOOSER.getValue());
Thanks in advance.