06-android-传感器与定位

Android传感器的开发 在Android平台上开发传感器的步骤如下: 1、调用Context的getSystemService(Context.SENSOR_SERVICE)方法获取SensorManager对象。 2、调用SensorManager的getDefaultSensor(int type)方法来获取指定类型的传感器。 3、一般在Activity的onResume()方法中调用Se
相关文章
相关标签/搜索