How can I delete Google drive file on android app - android

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.

Related

What is the future of App Data folder in google drive?

Im working on a game that uses google drive android api to store save games into app data folder. Now i want to migrate everything to REST api, since gdrive android api is deprecated now, but i noticed very strange statement in deprecation notice here: https://developers.google.com/drive/android/deprecation
"Support for storing and syncing in the app data folder will likely be removed from Drive in the future. Clients requiring app data storage are strongly encouraged to migrate to a non-Drive solution such as Cloud Firestore."
Anybody knows more concrete timeline for app data deprecation apart from "will likely be removed"?
Question is if it's still reasonable to invest time to migrate savegame storage to rest api or to just switch to Cloud Firestore as suggested.
I guess you just need to use the new version of the Google Drive Android API https://developers.google.com/drive/api/v3/appdata

Place finder android app in which users can upload places to the sever?

I am wondered if any one knows a source code(free or Licensed) about any place finding android studio project with in which the users are able to create and upload their own created places to the server?
your question is not so clear but anyway
this is a library that could help you work with the Places API
https://github.com/windy1/google-places-api-java
and this is a project that implemented the places API
https://github.com/pradeepms/Google-places-API

Checking file sync using Drive API

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

Writing to Google Drive from an Android app

I'm working on an Android app where I need to write to a Google Drive spreadsheet. There's a quick start video on "Google Developers Live" that seems to go through most of the required steps, but for the library usage they just say to click some button in Eclipse. I'm not using Eclipse though and would like to make this work with a maven project.
What libraries are required and how can I get them all using maven?
Here's the part of the video I'm talking about: http://youtu.be/Ied1CjJ0iP0?t=9m41s
Also, I've found this SO post and the latest edit says to use the Drive API V2 but a google api client is linked. I'm not exactly sure what's needed or if perhaps something has changed since then.
You should use the Google API Java Client. Downloads for Drive are here: https://code.google.com/p/google-api-java-client/wiki/APIs#Drive_API

Android Google Drive integration

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 :( )

Categories

Resources