I read this ( How do I handle the browser's "share page" intent in android? ) which I can get the Share link to detect my app, now how do I get Activity to receive the URL?
Found Answer:
Intent intent = getIntent();
if (savedInstanceState == null && intent != null) {
Log.d(TAG, "intent != null");
if (intent.getAction().equals(Intent.ACTION_SEND)) {
Log.d(TAG, "intent.getAction().equals(Intent.ACTION_SEND)");
String message = intent.getStringExtra(Intent.EXTRA_TEXT);
messageText.setText(message);
receiverText.requestFocus();
}
}