getSystemService
来源:互联网 发布:mysql企业版价格 编辑:程序博客网 时间:2024/04/30 14:02
getSystemService()是Android很重要的一个API,它是Activity的一个方法,根据传入的NAME来取得对应的Object,然后转换成相应的服务对象。以下介绍系统相应的服务。
LOCATION_SERVICE LocationManager 位置的服务,如GPS
SEARCH_SERVICE SearchManager 搜索的服务
VEBRATOR_SERVICE Vebrator 手机震动的服务
CONNECTIVITY_SERVICE Connectivity 网络连接的服务
WIFI_SERVICE WifiManager Wi-Fi 服务
TELEPHONY_SERVICE TeleponyManager 电话服务
传入的Name 返回的对象 说明
WINDOW_SERVICE WindowManager 管理打开的窗口程序
LAYOUT_INFLATER_SERVICE LayoutInflater 取得xml里定义的view
ACTIVITY_SERVICE ActivityManager 管理应用程序的系统状态
POWER_SERVICE PowerManger 电源的服务
ALARM_SERVICE AlarmManager 闹钟的服务
NOTIFICATION_SERVICE NotificationManager 状态栏的服务
LOCATION_SERVICE LocationManager 位置的服务,如GPS
SEARCH_SERVICE SearchManager 搜索的服务
VEBRATOR_SERVICE Vebrator 手机震动的服务
CONNECTIVITY_SERVICE Connectivity 网络连接的服务
WIFI_SERVICE WifiManager Wi-Fi 服务
TELEPHONY_SERVICE TeleponyManager 电话服务
0 0
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService ()
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- 活动图
- UML类图关系(泛化 、继承、实现、依赖、关联、聚合、组合)
- 从工程师到项目经理
- VC++中MCI播放音频文件
- 图片缩放时java.lang.IllegalArgumentException: pointerIndex out of range解决方案
- getSystemService
- VirtualBox中更改OS X Mavericks的分辨率
- 类加载机制与反射
- LTP,LOCKTESTS,IOZONE,FIO 配置和测试
- 网络编程总结
- FPGA配置芯片EPCS读写操作--STM32读写
- 一个关于Activiti或JBPM流程的回退的讨论
- onvif规范 中文介绍
- 使用NSOperation以及NSOperationQueue