Android: Licencing sample app works but integration doesn't - android

I've just finished designing a small android app and have now come to a point where i want to license this app and add it to the android market. I've implemented the LVL without any problems but when i come to test the licensing i am always getting the response "NOT_LICENSED" even though in the developer panel i have set the response to "LICENSED". I then uploaded the sample licensing app through the developers panel and tested it, this works fine and returns whatever i set the response to be.
I have copied and pasted the whole sample project into my existing project and am still getting the same response. Is there something i am missing?
My app in the developers panel is unpublished but still it should return a licensed response shouldn't it?
Thanks

Not sure why this wasn't working but i found a way to fix it anyway. I had to remove my app from the market then re-add it.

Related

At least one of your app or app bundles contain an actions.xml file

All of sudden google console started throwing an error message saying - "At least one of your app or app bundles contain an actions.xml file."
I have searched my entire app, there is no actions.xml.
Also used Analyze Apk tool of android studio to cross verify if any lib or other module may adding the actions.xml.
Here is one troubleshoot link from google (link) it describe the process To accept the Actions on Google Terms of Service.
But question remains the same that project doesn't contain any actions.xml.
Is it a console bug or I am missing anything.
This was very weird but when I tried to upload the apk after sometime it worked perfectly fine without any error messages.
As I rightly mentioned in the question there was no action.xml and action tag anywhere in my entire project.
It seems to be a console bug in my case.
It was a Google Play Console bug:
Thanks for your patience while our team investigated the behavior you experienced.
They have recently made some changes that should fix the problem. With the recent set of changes, please check to see if you are still experiencing the same issue. If so, I will be happy to see how else we can help.
Please ensure to clear your browser's cache and cookies first using the instructions available in our help center before accessing the Play Console again.

Android AppLinks work without assetlinks.json

While working on a feature for my app with AppLinks for Android. I have realized that it actually works without using the assetlinks.json file.
At first, I thought that this was because my app was an app for debug purpose, which wasn't signed and published through the store and that for testing purposed, Google decided to give us some space to work.
The day I released my app arrived, I put my app through Beta, installed my app from the store and tapped on a https://example.com and I was very surprised to see that I got asked which app I wanted to open this URL even though I had not make the assetlinks.json available from https://example.com/.well-known/assetlink.json.
Is there an explanation to that ?
Maybe the check is totally asynchronous and if at some point Google makes the check and find out you don't have this file, they shut it down until you fix it and ou have to wait until the next time they check you out ?
By the way, i have implemented the same functionality with iOS and in a very Apple-ish way, you really can't get around putting you apple-app-site-association file to the right spot and make it available from the right endpoint.
Thanks for the explanation :)
Guillaume.
Is there an explanation to that ?
What you describe has been the behavior since API Level 1 in 2008.
I was very surprised to see that I got asked which app I wanted to open this URL
This is called a "chooser". The point behind assetlinks.json is to avoid the chooser and drive straight to your app.

Google Drive Authentication Exception - Needs Permission? (v2)

I have been trying to add Google Drive(v2) into my Android application and I can’t get past authorization. I have been getting UserRecoverableAuthIOException, with the message “NeedPermission.” I have a feeling that there is something wrong with my Client ID on Google API Console, but I thought I should post here to see if anyone could shed some light on my situation.
I have implemented the Drive Quickstart for Android, and I ran DrEdit with no problems. (https://developers.google.com/drive/quickstart-android and https://developers.google.com/drive/examples/android)
The only real difference between my application and the sample/example applications is that the Google Drive code would be in a library project, so I tried the following:
I created a project with a package name (Let’s call it com.example.googledrivetest), that had the Android Quickstart code. This ran perfectly.
Then, I made this project into a Library Project, and changed the package name (Let’s call this com.example.googledrivetestlibrary), and made a project with “com.example.googledrivetest” as the package name. This new project called the library project. Running this new project worked correctly as well!
So, I tried moving the code that was getting the UserRecoverableAuthException in the other project into the library project (since, it was working). To my surprise, it worked perfectly.
Now, both “com.example.googledrivetest” and my other application (with the exception) are both registered on Google Console APIs’ API Access. So I tried changing “com.example.googledrivetest” to “, and then it started getting the UserRecoverableAuthIOException. If I changed it back to “com.example.googledrivetest,” it worked again.
So, I was wondering if there is anything I am doing wrong, or need to add to my code to get it to work.

Can't Publish Application to Android Market

I just developed my first game on Google Android. I'm trying to submit it the store. I paid my 25$ and went through all the steps.
When I'm at the part where I have to upload screenshots, I get this error:
Unable to parse response. If you have a browser extension or add-on
installed which changes the JSON response, please disable and refresh
this page.
I tried this on Chrome, Firefox, and IE. I don't have any extensions that would be doing any of this.
I've seen some other people post on Stackoverflow, but their posts (from what I could see) are from at last year... so is this a bug everyone is experiencing?
This is still a common issue
https://groups.google.com/a/googleproductforums.com/forum/#!category-topic/android-market/technical-help/8emO_DadgxI
My solution was to wait until my account was confirmed.
Try uploading the app by Re-Creating the screenshots. Try creating the screenshot using DDMS.

How to get Android Market licensing sample to work?

I downloaded the sdk and added the library to my workspace, then the sample for market licensing. The sample app seems to force close somewhere after/during the instantiation of LicenseChecker. I tried running on the emulator with Google API 8 and on a droid x with froyo and it force closes. The stack shows PerformLaunchActivity as the top item.
Both emulator and phone had a registered gmail account.
Any ideas how to get this to work?
Ok, simple answer was look in the code and replace the public key as it says.

Categories

Resources