save files from android app to google drive without using HTTP request - android

I want to save files from my Android application to Google drive, but i don't want to use HTTPS request. I want to put my files in Google drive even if the user is offline like local drive. So when user will come online, Google drive will upload this file to cloud automatically.
Is there any api exist who let upload files while offline?
Is there any same APIs for iOS also??
Thanks,

There is no API to interact with the Google Drive Clients in the way that you want, sorry! However, it is as easy as doing a copy or move operation on the file system. Just ask and store the user's Google Drive location on the disk, then copy the file into that directory when you need to.

For people digging in the Stackoverflow archives, note that offline drive access is available using the Google Drive API for Android. See the documentation here: https://developers.google.com/drive/android/ ... and for sure there must be one for iOS too.

Related

Google API to recover data

in google drive, there's a tab named "backups" that contains data from old android phones I have.
These backups are not downloadable.
Is there a way to download these backup files? is there a way to get the information inside the backup files? ( API requests )
I know that for the Whatsapp backup-file there is a different API (because it's not downloadable like the others).
There's no mention of accessing the backup folder in Drive API. But, if you're referring to a special folder called App Folder which is only accessible by your application, then you can. Check the Get authorization to use the App Folder.

How to read/write publicly shared file which is in others google drive account using share link from my application, Android?

I want to read/write publicly shared file which is in others google drive account using share link. How can I do that?. I am able to access file from my account successfully but how can i access others people google drive file which is publicly shared. I already have gone this link Read content of public shared file in Google Drive but didn't get much info about how to implement this. Please help me how to do this.
Unless I'm not understanding your question (receiving a link - in an e-mail... - to a shared file), a properly shared file to which you have write permission should be available in the Google drive app. I it regularly it for just that. And yes, it works for writing as well as reading.

how to sync a folder with drive using google drive android api? What is Transparent offline Sync?

I want to sync a folder with google drive. where it should check for local mobile sdcard folder files if they are not present in google drive it should upload such files to drive and vice versa based on time and date.
And in New Google Drive Android Api What is Transparent offline Sync ? any example code on that.
"Transparent offline sync" is referring to the fact that items that already exist in the user's drive may be available offline, and that if you create or modify files while offline, the changes will be sent up to the folder when they come online.
There isn't any code involved, it just happens in the background as you use the API.
No way to do a bi-directionnal synchronisation of a directory with google drive on android even using a simple call to the google drive API. You will have to use the timestamps of the file/directories AND to handle the deletion/creation, you will have to keep a trace of all the timestamps of all your file tree at a given time... If anyone could say I am wrong and explain me another way using the API (better) or configuring google drive (as you can do on a PC) I would be gratefull. Another idea is to use a clever android app such as FolderSync.

Best way to automatically move files from google drive to local storage?

My phone fills up the google drive with pictures and videos. I would want automatically move new files from google drive to local storage instead to free space from the drive. What would be the best practice using Windows as local machine? I'm open to some alternatives as well :).
you need to develop application with google drive SDK
Check This
and check this is also

Dropbox sync api implementation for android application

how can I use sync api provided by dropbox to download songs and other files from dropbox to my device's sd card.
The documentation says that we should use DbxFileSystem.open(path); .
Has anyone implemented this api?
I posted the question to the dropbox forum and the reply was:
"Currently, it's not possible to choose the location where local cached data is stored on the Android Sync SDK. However, I'll make sure to pass this along to the team.".
Conclusion: We cannot download a file directly to the external storage.

Categories

Resources