Skip to content

Instantly share code, notes, and snippets.

@aaustin
Created October 3, 2015 23:04
Show Gist options
  • Save aaustin/b6440fdbb7ad62133b48 to your computer and use it in GitHub Desktop.
Save aaustin/b6440fdbb7ad62133b48 to your computer and use it in GitHub Desktop.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Intent intent = getIntent();
String action = intent.getAction();
Uri data = intent.getData();
if (data != null && data.isHierarchical()) {
Log.i(“MyApp”, “Received link click on URL: “ + intent.getDataString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment