Android Google plus friend list - android

I having some confusion on google plus friends list ,
Before following (google plus - people method deprecated)
https://developers.google.com/+/web/api/rest/latest/people/list
We used following method for getting google plus friend list,
loadVisiblePeople(...)
but now a day it is deprecated.
So any one tell me , now in a new method of google plus , how to exactly get google friends list and which step follow for the same , and any other gradle file/compile library required for it ?
I study google plus document well but still having same confusion ,
So any one please remove my this confusion.

Related

Google Wallet Console - Class ID

I am trying to integrate google wallet loyalty cards into my application.
I succesfully tested using the ids from the demo project .
Now I want to prepare for production. I received access for google wallet but I do not know how to complete "class id" . Did not find in any documentation .
Thanks all for your time
You may enter whatever id you want (I didn't find the field restrictions)
and then you use it to set the classId with your issuerId, like this:
objectPayload.classId = `${issuerId}.${classId}`

Amazon IAP Android onProductDataResponse always fails

I am trying to implement a simple subscription IAP on Android using the Amazon SDK. I adjusted their subscription sample app. The code is really simple.
Set <String>productSkus = new HashSet<String>();
productSkus.add("TLS_SKU_MONTHLY" );
productSkus.add( "TLS_SKU" );
PurchasingService.getProductData(productSkus);
But the response from onProductDataResponse() is always fail. I'm not sure why, I cannot find any examples etc to even know if my SKUs are right, in the sample app they looked more like package names than this, but these strings are what I entered on the 'in-app items' on the apps page on Amazon. The app has not been submitted yet, but I need to test and implement IAP before that. Any ideas? I cannot even find a simple tutorial walking through this, and as usual their docs are poor.
edit, noticed im getting these errors that dont even come up on google
Kiwi: DataAuthenticationKeyLoaderV3: Unable to load authentication Key
java.io.FileNotFoundException: AppstoreAuthenticationKey.pem
DATA_AUTH_KEY_LOAD_FAILURE: CERT_NOT_FOUND: null
com.amazon.a.a.o.b.a.a: DATA_AUTH_KEY_LOAD_FAILURE: CERT_NOT_FOUND: null
I'm wondering, is this because I am running on real Android and not an Amazon device like a fire tablet or tv stick?
You should add your own AppstoreAuthenticationKey.pem to the project assets folder. It is not (and should not be) delivered together with the sample.
Basically, you must do a few things:
Login to the Amazon developer console and create your application.
Go to the “Apk Files" tab to download AppstoreAuthenticationKey.pem.
Add this file to the project’s assets folder.
You can get the full instructions from Amazon.
As for devices, yes, you must use an Amazon device. But this should not be the reason why you are getting this exception.

Is it possible to get the "Popular times" information through the Google Places API

Is it possible to get the "Popular times" information through the Google Places API or any other API? I need this information to be displayed in my application for a particular place.
This is one of the top feature requests in Google issue tracker (more than 500 stars):
https://issuetracker.google.com/issues/35827350
Currently, the state is Assigned, however, no any ETA provided by Google. Please star it to get further updates.
I haven't managed to test it myself but this is what populartimes offers to do in Python:
import populartimes
populartimes.get("your-api-key", ["bar"], (48.132986, 11.566126), (48.142199, 11.580047))
More info on developer's github.
It's possible to scrape it, but it violates the Google ToS.
yes its possible but as said it violates googles ToS ,
i have used npm package busy-hours but it's not working so i have modified their code and here is new npm package
https://www.npmjs.com/package/google-busy-hours

screenName confusion in Google Analytics SDK v4 for Android

I have learnt integrating Google Analytics in my Android app from here. But, I am unable to understand the priorities of the screen name mentioned in xml and mentioned programatically via setScreenName. If both are mentioned which one will I see in the reports? Should I use any one approach instead of both? I am not providing code because it's available in the above-mentioned page.
You can find the answer for yourself by logging the screen name to the console after you set it:
// log which screen name Google Analytics is associated with right now
String screenName = tracker.get("&cd");
Log.d("GA Screen Name", screenName == null ? "(not set)" : screenName);

REQUEST_DENIED response using Google Places Autocomplete API

I am working on android app which uses google's places autocomplete API.
When tried to hit following URL
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&types=geocode&sensor=false&language=en&key=apiKey
I got the response as below.
{
"predictions" : [],
"status" : "REQUEST_DENIED"
}
I got the API key from link below
Google APIs console
also i have enabled Google Maps API v3 service.
As per API documentation REQUEST_DENIED response is generally due to lack of sensor parameter but which i have already provided.
After hitting above URL directly in browser also i am getting REQUEST_DENIED response.
Is anything else i have to do?
Are you sure your key is correct and that you have enough quota left? Try generating a new key and checking that you have the referrals correct/set to empty.
You also may need to wait up to 5 minutes for the key to become active.
FWIW I tested your URL with my own key and it worked fine.
I was also facing the same issue "REQUEST_DENIED" when using google places API for my android app. As per Google API console help "Android and iOS keys are only supported by some APIs, such as the Google Maps Android API or the Google Maps SDK for iOS." (https://developers.google.com/console/help/).
In my case problem solved by using the 'key for bowser apps' instead of using android/iOs keys.
I dont see input parameter listed on API page http://code.google.com/apis/maps/documentation/places/#PlaceSearches
What does it do? If you really need to have it, try moving it to the last item. Or just try removing it first to see if it works.
The problem that you are facing is may be related to API_KEY.You inserted something like
letter "l" instead of capital "i". Capital i and el(l) looks same in the xcode
environment.Try to insert correct letter will solve the issue.

Categories

Resources