I have an app for which I am trying to create data backup & restore functionality where if user want, he can store backup on google drive. If he uninstalls the app and re-installs the app on same or different device then we can restore the backup from Drive.
Can I use Google Drive drive.appfolder scope for this purpose? If yes, what is the limitation?
Related
Is there any way to get Google drive backup folder information or the time when android device apps where last backed up?
I am making an android app which checks the last backup time
I believe that the backups are saved into an application data folder, an special hidden folder that saves application-specific files. Every application has one and can only be accessed by it. This means that you won't be able to access it with your application.
References
Store application-specific data (Google Drive API v3 guide)
I am using room database in my android app and I want to use it offline to access it from any device that installs the app...
where is the place I should put my database file in the android application to access it offline?
I am developing an application where I need to download pdf files from firebase storage and store it inside the app(the one I am developing) and these files shouldn't be accessible to user outside my app. I had developed using Firebase code for downloading but it is downloading in the download folder of mobile even after changing the destination directory.
Nowadays there are two kinds of storage in an android device: Internal and external.
According to android docs:
Internal storage:
It's always available.
Files saved here are accessible by only your app.
When the user uninstalls your app, the system removes all your app's files from internal storage.
External storage:
It's world-readable, so files saved here may be read outside of your control.
It's not always available, because the user can mount the external storage as USB storage and in some cases remove it from the device.
When the user uninstalls your app, the system removes your app's files from here only if you save them in the directory from getExternalFilesDir().
External storage is the best place for files that don't require access restrictions and for files that you want to share with other apps or allow the user to access with a computer.
Internal storage is best when you want to be sure that neither the user nor other apps can access your files.
To get path of internal storage of your app:
getFilesDir()
This will give you a File representing the directory on the file system that's uniquely associated with your app.
Hope it helps!
Source: Save files on device storage
EDIT:
If you want the file downloaded from firebase storage to be only visible to your app, you should move the file from downloads to internal storage and then delete the file from downloads
All,
I have a google application engine (java) that requires to store some images. I tried using Blobs and storing them in datastore but as you know there is a size limit on data that can be stored in datastore.
So as result I'm storing the images on a different server and store the path in my datastore and all works fine.
Now I'm thinking on using a google drive folder instead of using a server to upload the files to the drive and using the share link to display them later.
I've seen https://developers.google.com/drive/web/quickstart/java and got it to work fine. When I try to use it in my application however obviously this won't work as the code is assuming a credential for a local user.
I created a service key on my application and want to change the sample code above to use it but I'm not sure if that's the correct approach.
Tried searching for samples but can't find anyone that takes the same approach. Is there a working sample that shows how to authenticate an application not a user and let's say store a file in google drive?
I've also seen https://developers.google.com/drive/web/examples/ please note what I want is to store files in my google drive and not the user's google drive. So if user A and user B come to my app, they shouldn't have to authorize my application and should both be able to upload a file to my google drive.
I don't know if this can be done directly from their browser or I have to move the file to my application (appspot) and then push it to google drive.
Thanks
I am developing an app so that a user can access all folders in their dropbox. I've already got production status for my app. All I need to do now is to find a way to either open the dropbox app from mine, or somehow list the contents of the dropbox in my app. Either way, I would like some help.
The purpose of this access would be to allow the user to pick files from their dropbox folder which they will then download into the app.
Thanks in advance. :)