2012年6月24日
摘要: 电子罗盘: 1. /* 取得SensorManager */ SensorManagermSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); 2. /* 取得需要的Sensor,并注册SensorEventListener */ mSensorManager.registerListener(mSensorEventListener, mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION),SensorManager.SENSO... 阅读全文
posted @ 2012-06-24 18:41 lee0oo0 阅读(2237) 评论(0) 推荐(1)
摘要: 开启内置闹钟: Intent intent = new Intent(); intent.setAction("android.intent.action.SET_ALARM"); startActivity(intent); 开启所有程序的画面: startActivity(new Intent("android.provider.Settings.ACTION_MANAGE_ALL_APPLICATION_SETTINGS")); 开启指定程序的细节画面: //取得所有的PackageName PackageManager pm = getPacka 阅读全文
posted @ 2012-06-24 17:11 lee0oo0 阅读(2708) 评论(0) 推荐(0)