python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
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://"));
th...
FGH
Votes: 0
Answers: 0
Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.content.pm.PackageManager.loadItemIcon on a null object reference
On some devices I get this crash, whereas on most devices everything works fine, can anyone explain the reason for this exception and how to fix it?
My code:
private fun onGetBatteryApps() {
m...
Armenak Mkhitaryan
Votes: 0
Answers: 1
Android PackageManager: check if a library APK has been installed
The PackageManager.getPackageInfo(packageName, flags) method can be used to check whether a specific package has been installed. It either returns the PackageInfo or throws PackageManager.NameNotFound...
vmayorow
Votes: 0
Answers: 1
PackageManager.FEATURE_FINGERPRINT always returns false on API 23
I am using Fingerprint authentication in my app. To decide whether a device has a fingerprint hardware or not I am using this
getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT);
...
Rohit Singh
Votes: 0
Answers: 1