This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Build the basic intent. This is common to all linked pages | |
* This adds the current user's playerId. This is important. | |
*/ | |
public Intent buildDeepLinkIntent(GoogleApiClient googleApiClient) { | |
Intent intent = new Intent(); | |
//Clear the activity so the back button returns to your app | |
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | |
//Manually specify the package and activity name | |
intent.setComponent(new ComponentName("com.google.android.play.games", "com.google.android.gms.games.ui.destination.api.ApiActivity")); |