Is there a way to open Chrome app on Android from default Android browser? I\'m able to open the app, but it doesn\'t redirect user to correct page. This is what I tried:
<
I am using below code to open Chrome browser
from Android app
String urlString = "http://google.com";
Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse(urlString));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setPackage("com.android.chrome");
try
{
context.startActivity(intent);
}
catch (ActivityNotFoundException ex)
{
//if Chrome browser not installed
intent.setPackage(null);
context.startActivity(intent);
}