public static final String CALCULATOR_PACKAGE =\"com.android.calculator2\";
public static final String CALCULATOR_CLASS =\"com.android.calculator2.Calculator\";
You'll have to check if the default calculator package name(com.android.calculator2) is available with this:
try{
ApplicationInfo info = getPackageManager()
.getApplicationInfo("com.android.calculator2", 0 );
} catch( PackageManager.NameNotFoundException e ){
//application doesn't exist
}
Samsung uses a lot of apps preinstalled with TouchWiz which aren't available in stock Android. Therefore if you get an Exception in the above you can check if Samsung's calculator is available. Btw I think com.android.calculator2 is not HTC specific.