1 year ago

#373078

test-img

FGH

Is there any way to get Resolve Object of browser without passing the Intent URI as Constructer?

In order to get the ResolveInfo object of the browser, we can pass the Intent like below

 Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("http://"));

then we have to pass this intent like this to get ResolveInfo Object ,

ResolveInfo resolveInfo = getPackageManager().resolveActivity(browserIntent,PackageManager.MATCH_DEFAULT_ONLY);

Is there any way to get browser Resolveinfo object without passing the URI as a Second Constructor, Thanks

android

android-package-managers

0 Answers

Your Answer

Accepted video resources