android-instant-apps-demo
android-instant-apps-demo copied to clipboard
Preventing "Open With" prompt when navigating in app
Is there way, when running as normal apk, to prevent the "Open with" prompt when using app links to navigate to different parts of app?
@joreilly yeah use this:
private static void invokeDeepLink(Context context, String deepLink) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(deepLink));
intent.setPackage(context.getPackageName()); // direct to activities in this app
context.startActivity(intent);
}