In my program there is check if OpenCV Manager
app installed. I got idea from this answer, here is my code:
public static boolean isAppInstalled(Context cnt, String packName) {
PackageManager pm = cnt.getPackageManager();
try {
pm.getPackageInfo(packName, PackageManager.GET_ACTIVITIES);
}
catch (PackageManager.NameNotFoundException e) {
return false;
}
return true;
}
It is calling from:
private boolean isOpenCVInstalled() {
return GlobalFunctions.isAppInstalled(this, "org.opencv.engine");
}
On my phone and tablet it works fine. But on Samsung Galaxy Xcover 3
phone it is always returns true
, so in form with OpenCV camera preview I get package not found, install?
message and file not found
on accept installation.
What is wrong with galaxy phone? Or with my code?
UPDATE
This link makes me sad. Does that mean there is no solution?