I am working on an Android project and I am trying to make use of the Google Drive API and I\'ve got most of it working but I am having an issue in how I perform a download.
Stan0 intial idea is not a good idea. There can be multiple files with the same name. Very error prone implementation. Stan0's second idea is the correct way.
When you first upload the file to google drive store its id (in SharedPreferences is probably easiest) for later use
ie.
file= mDrive.files().insert(body).execute(); //initial insert of file to google drive
whereverYouWantToStoreIt= file.getId(); //now you have the guaranteed unique id
//of the file just inserted. Store it and use it
//whenever you need to fetch this file