+1... I just tried this and it worked perfectly. thanks for sharing this very helpful information.
Quote from: "menion"Simple method is to check, if Locus allowed to handle points and is in system ...Las Vegas Show Guide Vegas Shows
use thisCode Selectpublic static boolean isLocusAvailable(Activity activity) {
try {
// set intent
final PackageManager packageManager = activity.getPackageManager();
final Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("menion.points:x"));
// return true or false
return packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).size() > 0;
} catch (Exception e) {
return false;
}
}