android Google+ returns user birthday year as 0000 -


i using google+ in application user login , posting on user wall.

posting on user wall works fine.

but when try user profile data returns user birthday year 0000.and happens user , other user correct birthdate.

i have following code initialize google+ client

mplusclient = new plusclient.builder(getapplicationcontext(), this, this)                     .setvisibleactivities("http://schemas.google.com/addactivity").setscopes(scopes.plus_login, scopes.plus_profile).build(); 

and have following code retrieve user profile data:

mplusclient.loadperson(this, "me"); @override     public void onpersonloaded(connectionresult arg0, person arg1)         {             log.i("person",""+arg1.tostring());             if (currentperson.hasbirthday())                             {                                 string birthday = currentperson.getbirthday();                                 mylog.i("birthdate :", "" + birthday);                             }             } 

why so? why happens users? missing something?

please me.

users can decide in profile settings, whether want have birthday public (which ones get) , additional setting whether want year included well. when setting disabled 0000 year instead of real year.

birthday settings


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -