Thursday, April 18, 2013

[android-developers] Google+ How to know if application is installed by friends

Hi,

I'm trying to retrieve the people in a user's circles that have installed the current application.

I have used the sample application "PlusSampleActivity" provided in the SDK and successfully managed to get the list of all people in the user's circles.
However, I'm not sure how to get if the person have installed the application or not. The documentation available seems to be very limited...

What I have found is
https://developer.android.com/reference/com/google/android/gms/plus/model/people/Person.html
I'm using below function but this is always returning false. (I have created a user that have installed the app and I can see this when visiting this user's profile on the web using Google+)

Is there some other API that should be used? Or any other limitations that I don't know about (time until it is visible?)?

public abstract boolean isHasApp ()

 If "true", indicates that the person has installed the app that is
 making the request and has chosen to expose this install state to the
 caller. A value of "false" indicates that the install state cannot be
 determined (it is either not installed or the person has chosen to
 keep this information private).



Best regards,
Raz
 

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment