I want to open an Facebook link from my android application. The URL is looks like http://www.facebbok.com/abcxyz. It should open the 'abcxyz' page in the Facebook application, but it is always opening in browser.
Code:
try
{
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
activityContext.startActivity(browserIntent);
}
catch (ActivityNotFoundException ex)
{
ex.printStackTrace();
}
My android OS version is 6.0.1.
I have the same issue with Instagram, http://www.instagram.com/abcxyz, while other applications like Youtube work.