You wont be able to do directly you need to use google api, following is the code.
**Dependencies:**
compile 'com.google.android.gms:play-services-identity:8.3.0'
compile('com.google.api-client:google-api-client-android:1.20.0') {
exclude group: 'org.apache.httpcomponents'
}
do the following stuff in async task
try{
URL url = new URL(URL);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
conn.setRequestProperty("Authorization", "OAuth " + GoogleAuthUtil.getToken(mContext, mCredential.getSelectedAccountName(), Constants.SCOPE));
conn.setDoInput(true);
// Starts the query
conn.connect();
int responseCode = conn.getResponseCode();
//you will recive the file in input stream
File sdcard = Environment.getExternalStorageDirectory();
File file = new File(sdcard, "filename.pdf");
FileOutputStream fileOutput = new FileOutputStream(file);
InputStream inputStream = conn.getInputStream();
byte[] buffer = new byte[1024];
int bufferLength = 0;
while ( (bufferLength = inputStream.read(buffer)) > 0 ) {
fileOutput.write(buffer, 0, bufferLength);
}
fileOutput.close();
}