Cant launch Android play store Leaderboard from Grid view -
i have more 1 leaderboard
on clicking grid item want launch different leader board each level.
but when trying launch leaderboard
onitemclick
leaderboard
not getting launched
my code goes below
@override public void onitemclick(adapterview<?> parent, view v, int position, long id) { if (mactivitytype == activity_leaderboard_select) { if (issignedin()) { intent intent = getgamesclient().getleaderboardintent(util.getleaderboardid(levelselectactivity.this, position)); startactivityforresult(intent, 143); googleanalyics.addview(levelselectactivity.this.getapplicationcontext(), "leaderboardactivity:" + (position + 1)); finish(); } else { if (util.iswificonnected(levelselectactivity.this)) { beginuserinitiatedsignin(); } else { new customtoastsystem(levelselectactivity.this).toast(r.string.nointernet, toast.length_long); } } } }
i log when click on grid item
i/activitymanager( 2305): start u0 {act=com.google.android.gms.games.view_leaderboard_scores flg=0x4000000 cmp=com.google.android.gms/.games.ui.client.leaderboards.clientleaderboardscorelistactivity (has extras)} pid 32406 w/activitymanager( 2305): activity launching new task, cancelling activity result. d/dalvikvm( 2305): gc_for_alloc freed 522k, 32% free 22502k/33080k, paused 61ms, total 61ms w/contextimpl( 2305): calling method in system process without qualified user: android.app.contextimpl.sendbroadcast:1084 com.android.server.am.activitystack.finishactivitylocked:3814 com.android.server.am.activitystack.finishactivitylocked:3796 com.android.server.am.activitystack.requestfinishactivitylocked:3712 com.android.server.am.activitymanagerservice.finishactivity:2843 e/clientuifragact(32292): client ui activities must started startactivityforresult e/gamesfragmentactivity(32292): unable instantiate googleapiclient; bailing out... w/contextimpl( 2305): calling method in system process without qualified user: android.app.contextimpl.sendbroadcast:1084 com.android.server.am.activitystack.finishactivitylocked:3814 com.android.server.am.activitystack.finishactivitylocked:3796 com.android.server.am.activitystack.requestfinishactivitylocked:3712 com.android.server.am.activitymanagerservice.finishactivity:2843 v/phonestatusbar( 2478): setlightson(true) d/audio_hw_primary( 1944): select_output_device: audio_device_out_speaker d/dalvikvm(32292): gc_explicit freed 8875k, 72% free 3997k/13816k, paused 2ms+3ms, total 32ms
but same thing works fine i.e leader board gets launched if launch button click
please suggestions
Comments
Post a Comment