Android calendar API account selection - android

I followed the Android calendar api integration from the official site and I encountered some issues.
The 'choose an account' dialog doesn't stop to pop up. I select an account from the list and instead of continuing, the dialog pops up again.
I tried debugging and found that after this line the mCredential object is still null
mCredential.setSelectedAccountName(accountName);
even though the account name contains the real name. I believe that this is the problem, but I didn't find out how to resolve it.
Can anyone help me with it?

Figure it out.
I raed this question:
Android M - GoogleAccountCredential setSelectedAccount doesn't work - name must not be null
The problem was that I didn`t request on runtime the "GET_ACCOUNTS" permission.
All tough it was not written at the log cat as an error, after adding it solve my problem.

Related

Facebook share dialog android return error

I want to share a simple link from my android app.
I followed the getting started guide from Facebook and all seem okay in my app since I can open the share dialog.
I imported FacebookSDK project and linked library
I set my appproperly (package/class name and dev hash keys)
My manifest has right permissions and meta-data
Additional infos :
I use a real device for debug
I run a test app as admin
I'm running a simple share code sample from an activity
I had troubles to generate hash keys but that post helped me. I got an error saying XXX key (different from the one I generated) doesn't match.
Then I tried the method explained here (at the end) to log another key.
Since now, I just get a toast saying "Something went wrong. Please try again."
What am I doing wrong ?
So I solved my problem thanks to another post. The problem is I was trying to generate a key outside my main (first) class.

Track APP Installs from Facebook

I'm following documentation as states:
https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads/#advanced
Specifically: Measure App Installs
However, I did the following code:
com.facebook.AppEventsLogger.activateApp( this, APPLICATION_ID_FACEBOOK );
However, in dashboard, it doesn't detect the install:
Any tips?
LogCat outputs the following:
FacebookException: No attribution id returned from the Facebook application
Ok. Solved.
Basically for whoever faces this:
FACEBOOK APP must be installed in device.
USER must be logged in.
Thats it.
=)
Another great but hidden hint is to enable verbose logging via
FacebookSdk.addLoggingBehavior(APP_EVENTS)
The output is actually very helpful and even contains error analysis and descriptions.

Android IAB: "Error refreshing inventory (querying prices of items)" Developer Error

I've been setting up Android in app billing v3, using the IABHelper class, and following the example code provided by Google. I have it mostly working all the way through purchase (with signed apk and real credit card charge).
However, in the course of testing today I started to get a new error in my QueryInventoryFinishedListener from the queryInventoryAsync() method:
IABResult message: "Error refreshing inventory (querying prices of items)"
IABResult response: 5:Developer Error
Weird thing #1 is that this occurs after the onIabSetupFinished() callback returns (with the customary "Hooray" message). Weird thing #2 is that I can subsequently & successfully process an in app purchase (using the launchPurchaseFlow() method).
I found a patch here that addresses the same symptoms I'm experiencing, but it didn't work for me.
I've tried using different devices, using different gmail accounts, and building a new product from scratch. I even getting the error on earlier versions of my app that ran correctly (what?!).
My question is: Why can't I query the product inventory, even after IABHelper has confirmed the set up was successful? What could be causing this error, and how can I fix it?
Thank you for any insight.
UPDATE
I was able to get the inventory query transactions to work again by ditching the account I was testing with, and switching to a new account. No code change.
My tentative conclusion is that something got corrupted in the user account I was using (?). During testing, I had hit it pretty hard with a lot of purchases of different in-app products -- but I still need to find out what happened, and make sure this doesn't happen to any of my users.
Please let me know if you have any experience with this. Thanks!
We had the same problem in one of our apps under test mode. Later, we figured out that, we had to clear the Cache of the Google Play Store app.
So you can try this -
Go your device's Settings menu.
Go to Applications (may also be labeled Application Manager).
Tab over to All Applications.
Search for and open the Google Play Store app. Tap on it, application settings will show
Tap on Clear Data and Clear Cache.
Now go back to your app and try to load inventory. It solved our problem.
I found by trial and error that if you query more than 20 items at once, it will fail with this error.
I submitted a patch for IabHelper.java that splits the list of SKUs into packets of 20 items each and does the query.
You can grab it there: https://code.google.com/p/marketbilling/issues/detail?id=123
I have the same issue with this log :
"InAppBillingManager.getSkuDetails: Input Error: skusBundle array associated with key ITEM_ID_LIST cannot contain more than 20 items."
this note had mentioned in IInAppBillingService.aidl file, see the documentation of the method getSkuDetails(..) .
So you should make the same process for each 20 items every time
I face same error but my issue is Date Time change
Go to setting and check your date time is accurate

Error during Single Sign On

I've built the code from this tutorial and it worked fine. But today the application asked me to aprove some unknown permissions(but i didnt add any permissons or anything else to my code) and showed error message after I clicked "ok" button:
Error detected in Appname. Please try again later.
API Error code: 100
API Error Description: Invalid parameter
Error Message: Requires valid redirect URI
What wrong with it? Where this redirect URI should be set?
PS: onCancel method of DialogListener is been calling during the error.
Update: I've found the issue on facebook bug tracker.
"Enhanced Auth Dialog" should be disabled in application settings to solve the issue.
Removing the Facebook application updates could also help.

Facebook Publish Error In Android Application

HI Friends,
I implemented facebook connect in android using facebook-android-sdk. Most of the times I am getting error while i am publishing.
Less number of times publish is working fine.
Publish story window is opening good with What's on your mind text box. When i am clicking on the publish button in the Publish story window, i am getting error.
The error is constantly changing when i coming(clicking ) to next time.
some of the the errors i have been seen in my application when i am clicking in the publish button are.
Error Examples:
1. An error occurred with Holyplanets Connect.please try again later
An error occurred with WordpressBlog Connect.please try again later
An Error occurred with UFOS ON EARTH. Please try agian later
How can i fix this error? If anybody knows please let me know.
Thanks and Regards,
Kiran
I think this could be a fault with Facebook.com.
I started getting this yesterday in my iOS app which has been out for months.

Categories

Resources