【发布时间】:2017-01-28 21:13:23
【问题描述】:
当我对 google play 游戏库中的任何内容(选择玩家、排行榜、成就)使用 startActivityForResult 并且该活动返回时,它会返回到手机的操作系统屏幕。这在我之前根本没有发生过,但现在它确实发生了只有在没有附加调试器时才会发生
我使用的是 xamarin,因此下面的 C# 代码:
StartActivityForResult(GamesClass.Achievements.GetAchievementsIntent(mGoogleApiClient),
REQUEST_ACHIEVEMENTS);
...
protected override void OnActivityResult(int requestCode, Result resultCode,
Intent intent)
{
//This does not get hit
Logger.Debug(TAG, "OnActivityResult()");
}
什么?
【问题讨论】:
标签: android android-activity xamarin google-play-games