Skip to content

Instantly share code, notes, and snippets.

@robophil
Created April 7, 2017 12:46
Show Gist options
  • Save robophil/2d97368f0850d4524490f1b320ee1b88 to your computer and use it in GitHub Desktop.
Save robophil/2d97368f0850d4524490f1b320ee1b88 to your computer and use it in GitHub Desktop.
Activity for handling deep liking intent. See https://developer.android.com/training/app-indexing/deep-linking.html
package com.payporte.mobile.activity;
import android.os.Bundle;
public class ProductActivity extends AppCompatActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.product);
Intent intent = getIntent();
String action = intent.getAction();
Uri data = intent.getData();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment