1:
audio = (AudioManager)this.getSystemService(AUDIO_SERVICE);//声音控制
2:
alar= (AlarmManager)this.getSystemService(ALARM_SERVICE);//闹钟控制
3:
conn = (ConnectivityManager)this.getSystemService(CONNECTIVITY_SERVICE);//网络连接
4:
input = (InputMethodManager)this.getSystemService(INPUT_METHOD_SERVICE);//键盘的模式
5:
inflater = (LayoutInflater)this.getSystemService(LAYOUT_INFLATER_SERVICE);//view的填充
6:
location= (LocationManager)this.getSystemService(LOCATION_SERVICE);//定位的管理
7:
power= (PowerManager)this.getSystemService(POWER_SERVICE);//电池的管理
8:
sensor= (SensorManager)this.getSystemService(SENSOR_SERVICE);//重力感应
9:
tele= (TelephonyManager)this.getSystemService(TELEPHONY_SERVICE);//电话短信
10:
vibrator= (Vibrator)this.getSystemService(VIBRATOR_SERVICE);//震动
11:
wifi= (WifiManager)this.getSystemService(WIFI_SERVICE);//wifi的信息
12:
window= (WindowManager)this.getSystemService(WINDOW_SERVICE);//窗口管理