jquery - Is there any way in Android to force open a link to open in Chrome? - Stack Overflow This ...

Please Visit: http://ift.tt/1ajReyV



jquery - Is there any way in Android to force open a link to open in Chrome? - Stack Overflow



This code should do:

try {

Intent i = new Intent("android.intent.action.MAIN");

i.setComponent(ComponentName.unflattenFromString("com.android.chrome/com.android.chrome.Main"));

i.addCategory("android.intent.category.LAUNCHER");

i.setData(Uri.parse("http://mysuperwebsite"));

startActivity(i);

}

catch(ActivityNotFoundException e) {

// Chrome is probably not installed

}





Read full article from: http://ift.tt/1mvaVjf

http://ift.tt/1kCENWW



jquery - Is there any way in Android to force open a link to open in Chrome? - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mvaVji

via LifeLong Community

No comments:

Post a Comment