-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External browser support #902
Comments
I'm not sure what the OP is asking since the app supports external browsers so I'm to assume they are having the same issue I am. |
fun Context.getBrowserAppList(): List<ResolveInfo> {
val pm: PackageManager = packageManager
val intent = Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_APP_BROWSER)
val appInfoList = pm.run {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
queryIntentActivities(intent, PackageManager.ResolveInfoFlags.of(0))
} else {
queryIntentActivities(intent, 0)
}
}
return appInfoList.sortedBy { it.loadLabel(pm).toString() }
} Here it filters apps that match the val intent = Intent(Intent.ACTION_VIEW).apply {
data = Uri.parse("http://example.com") // Example link as it's necessary to add somet link here
} |
I'm not sure what OP meant (not enough details in the issue) In case OP just didn't know where to find the settings for external browsers, it can be changed in If OP wanted to open the article itself in external browser... I don't know of any way to do that, but I would love to see it implemented (maybe long-pressing article icon in bottom-right, or a new icon next to share icon on top) |
1. Environment
2. Describe the feature request
_(I may not respond in a timely manner, but you will be notified when this issue is resolved or refused to be resolved.)_Hi there, is it possible to add external browser?
The text was updated successfully, but these errors were encountered: