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. :)
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 creating an android app which uses Google Sheets API V4 and Google Drive API V2 to edit a Google Spreadsheet. But I am having an issue. I need to be able to check if the spreadsheet is shared with the user who is logged into the device and if they can edit it or if they are an owner. I have tried
Boolean canEdit = driveService.files().get(fileId).execute().getEditable();
and
Boolean canEdit = driveService.files()
.get(fileId).execute().getCapabilities().getCanEdit();
but both of those seem to only work if the user owns the file. I think that that is because the command files().get(id) can only get the files in the users drive; not any files that are shared with the user. I have also tried
String role = driveService.permissions().get(fileId, driveService
.about().get().execute().getPermissionId()).execute().getRole();
but this seems to also only look for files in the users Drive. All of these commands throw 404 Not Found if the user is not an owner.
Please help me!
As discussed in Handling API Errors, 404: File not found could be that the user does not have read access to a file.
And, AFAIK, requests which needs access to user data requires s particular scope of access. However, as noted in Authorizing Android Apps, the Google Drive Android API currently only supports drive.file and drive.appfolder authorization scopes.
With this, you may want to authorize your requests using the Google APIs Java Client and instead use the Google Drive web service to search for files that are shared with you.
In my project I want to know from what website or android market, my application has been downloaded and installed.
Now I see two ways:
1) Use mobile browser storage to save location
2) Generate application for each site in the system
Both of them enough for my project, but I want to know if there is another legal ways through Play market
PackageManager.getInstallerPackageName() will give you the package name of the app which installed the app with the package name passed in as a String.
You're looking for Google Play Campaign Measurements
Google Play Campaign Measurement allows you to see which campaigns and
traffic sources are sending users to download your app from the Google
Play Store.
You can create multiple apk files, one for every distribution channel you have.
In your project, create a config.json which contains the information you want to know about the installation and current version of the installed apk file of your application. The contents of the file, varies based on the distribution channel. For example, for the version you want to upload to Google Play, it can contain :
{
"channel" : "google-play-store",
"campaign_name" : "fall 2016"
}
Now, when the user installs and runs your application for the first time, read this config.json and send this information to a remote webservice of your own, to collect statistics.
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 have an android application, which wants the user to login each time he runs the app. So, the login procedure is simple, using the sqlite dabase file i'm using. I've copied the file in assets folder and doing the necessary modifications. But, the database file is of no use unless it is on the server. I don't have any server so i'm thinkin of keeping the database file on dropbox, google drive etc and then read or update that file as per user commands. The question is how to do that? I was searching the web for it, and found that the only way is downloading the db file modifying it and the uploading it back. Can anyone give me an example??
Doing that isn't possible unless you have a server.
Because, if you are using dropbox, first you'll have to make your file public in order to download it (Not recommended at all. Compromises security). Then you can use the url to download the file. But you won't be able to upload it back (Unless you are able to login to dropbox through your Android code).
Instead if you a web server with MySQL n PHP, you can easily send POST requests to your server.