I want to know from my android app, if there is a Samsung Gear configured by the user that can be connected or not.
For the moment I use this code, which is a lesser evil: if the user has the samsung manager installed, I guessed he also have a samsung Gear:
PackageManager pm = context.getPackageManager();
try {
pm.getPackageInfo("com.samsung.android.gearmodule", PackageManager.GET_ACTIVITIES);
return true;
}
catch (PackageManager.NameNotFoundException e) {
return false;
}