@TargetApi(Build.VERSION_CODES.FROYO)
    public static boolean hasAccelerometerSensorFeature(Context context) {
        return hasAccelerometerSensorFeature(context.getPackageManager());
    }
@ TargetApi ( Build . VERSION_CODES . FROYO ) public static boolean hasAccelerometerSensorFeature ( Context context ) { return hasAccelerometerSensorFeature ( context . getPackageManager ( ) ) ; }
Checks if the device has a accelerometer sensor.
@param context the context.
@return {@code true} if the device has a accelerometer sensor.