How can I check if the file is uploaded to Google Drive using Google Drive Android API? I was looking here but the only file missing is the CheckFileSyncStatusActivity.java which, I guess, does the thing I need.
Though its very late to answer but you can make completion events to detect when upload is done to drive.
Here is a google link regarding that link
Related
I have gone through Google Drive API Documentation and tried Official Google Drive Demos from Github as well. I couldn't find directly download file from Google Drive to Android Local Storage. There are so many threads on StackOverflow and I tried some but no success yet.
Can someone point me to right direction? Tutorial link or even StackOverflow thread which works?
As per my needs Google Drive Android API doesn't provide Download and Upload atleast that's not in documentation https://developers.google.com/drive/android/intro
Documentation shows reading from input stream and writing to it.
So I decided to use Google Drive REST API. which clearly states downloading and uploading methods or endpoints.
Now the issue is Rest documentation not showing how to authenticate on android and use that authentication to make requests to REST API.
Can anyone tell me if it is possible to open Google Drive App at certain path? I know that Google Drive APi allow to list all files for every folder, but i prefer use Google Drive app if is possible.
Thank you.
Try with this excelent answer
With this, you can open Google Drive native app from another app.
I am a developer and currently working on google drive API on android.
I can query and create file/folder from my app using GoogleApiClient; however, I cannot delete the files from my app.
After I google it and I found out that the newest google drive Android API has not supported it yet.
So, are there other ways to delete files from android app?
The answer is here - SO 22295903, just combine with the old API. Or wait, DELETE has been promised soon.
In SO 22295903, there is a mention of reverting to the RESTful API. I have not done it myself, but I think you would take the resource ID, DriveId.getResourceId() and apply it to the trash or delete method. But it is only an untested idea, so don't shoot me.
I need to upload an file from android device SDCARD onto google cloud, I google long time on internet,but I couldn't found correct version of Api to achieve file share over cloud. Help me with sample code to login and share files over cloud with right api.
I have no experience of this, but there does seem to be some documentation here:
https://developers.google.com/drive/get-started
Have you already looked through this?
EDIT: That appears to be for Chrome apps. There is a similar question here: Android API for Google Drive?
It looks like the short answer is the solution is a long one (people have mentioned having to do it manually :( )
my question is short.
I am making an application that creates and uses .kml map files. I thought it would be a very good idea if the user could upload his maps to Google "My maps" server (which imports .kml files through the browser version) from my application, and also load them afterwards. However, I have not found any documentation related to this possibility, and I have spent hours looking through the internet and the Google Maps Android API, without luck.
Does anyone know if my idea is possible? Or google keeps this closed for their internal applications?
Thanks :)
There is an API to upload .kml files to Google Maps (the Google Maps Data API), but it doesn't work due to a bug that Google have decided not to fix for some reason.
See my answer to the question "how can I upload a kml file with a script to google maps?" for the details