I need to build an application which upload the photo taken through the application to a unique google drive account.Have tried https://developers.google.com/drive/quickstart-android and build the app .But it is taking the google account which has been registered in the tablet,wheras i want to upload it to a unique account.Can someone help me on the same.
You should use Service Accounts to store files on behalf of your application and not on a user’s Drive: https://developers.google.com/drive/service-accounts
Related
I have uploaded an app to the Google play store which is published successfully and is in production mode. But the problem is if click on the play store app link https://play.google.com/store/apps/details?id=com.weather.check.app then it requires sign-in for the user to install.
Could anyone please tell me how to get a direct user download link where the user doesn't need to sign in to install the app?
Thanks in advance.
If you are using a google play link to share/download then you have to sign in with an account to download/install. Otherwise you can generate a signed build for your apk using Android Studio and save that apk file inside a google drive folder and make that folder accessible to all(public) and share the public url for this folder so that users can download and install it without signing up.
I try to launch the first app for my company for the 1st time using the company google domain account, however, when I try to create a Google Play Developer Console account, but it doesn't let me do it with an error:
"We are sorry, but you do not have access to this service. Please contact your domain administrator for access."
I certainly want to publish the app using my work email. Any thought or guideline to follow?
Thanks,
If you want to publish any Android application on Google Play Store for your organization than you should publish it under Google play console account created using your company domain email address.
You need to create account follwing the steps:-
Registration Link: Click on –->
Google Play Console Sign up
I am making and android app which downloads a particular file from Google Drive, reformats the data in the file and then displays it to the user.I have used the Google Drive API. In the app, instead of asking the User to select an account, I want to hard code a Google Account Username and Password through which the file on the Drive is downloaded. This should happen without the user's interaction.
You do not need to hardcode your account data - just use Service account
How to use Google Drive SDK in Android project with hardcoded credentials - here the solution.
My application is a paid application which is also using apk expansion library.
For testing I have added a test account in my developer console say
xyz#gmail.com
And it's working as expected (Expansion files are downloaded) when I am testing with a device which was registered with above account first.
But the problem occurred when I installed a signed apk to a device which is already registered with
abc#gmail.com
I have added xyz#gmail.com account before the installation of signed apk, And as a checklist I made sure Gmail and Google Play are working properly with this account.
But upon running the app, I have got the error
"Download failed because you may not have purchased the app".
What should I do to test the application in above condition? Do I need to remove abc#gmail.com? Or is there any workaround?
It's done and final.
Android LVL aka Licencing verification library only fetches primary account (Google account you registered first for your device) to work with.
Quoting android's original documentation
The Google Play client collects the necessary information about the user and the device, such as the device's primary Google account username, IMSI, and other information. It then sends the license check request to the server on behalf of your application.
Can I use Google Drive to upload images through an Android application. I also would not want the user to be involved in the process of authentication because all the images should be uploaded to a specific user's Drive only. I think this is only possible through a 2-legged OAuth but does a 2-legged OAuth exist for the Drive??
Thank YOu
2-legged OAuth does not exist on Google Drive. The nearest behaviour achievable is by using Service Accounts with impersonation. If you have a google apps domain, you can use Provisioning API to find the users of the domain and impersonate them progammatically