'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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
