I am trying to make an intent that will open com.mozilla.firefox with my link and ignoring the default intent handler for .ACTION_VIEW
My current logic is this:
Uri uri = formatURL(url); //Turns my string into a URI formatted correctly
final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setPackage("com.mozilla.firefox");
contextActivity.startActivity(intent);
This seems like it should work, but instead does nothing (compared to removing line #3, which opens in Chrome, my default browser). Is it possible to specifically target another app for an intent?