getSystemService
来源:互联网 发布:java 终止当前线程 编辑:程序博客网 时间:2024/04/29 03:48
getSystemService是Android很重要的一个API,它是Activity的一个方法,根据传入的NAME来取得对应的Object,然后转换成相应的服务对象。以下介绍系统相应的服务。
传入的Name | 返回的对象 | 说明
WINDOW_SERVICE WindowManager 管理打开的窗口程序
LAYOUT_INFLATER_SERVICE LayoutInflater 取得xml里定义的view
ACTIVITY_SERVICE ActivityManager 管理应用程序的系统状态
POWER_SERVICE PowerManger 电源的服务
ALARM_SERVICE AlarmManager 闹钟的服务
NOTIFICATION_SERVICE NotificationManager 状态栏的服务
KEYGUARD_SERVICE KeyguardManager 键盘锁的服务
LOCATION_SERVICE LocationManager 位置的服务,如GPS
SEARCH_SERVICE SearchManager 搜索的服务
VEBRATOR_SERVICE Vebrator 手机震动的服务
CONNECTIVITY_SERVICE Connectivity 网络连接的服务
WIFI_SERVICE WifiManager Wi-Fi服务
TELEPHONY_SERVICE TeleponyManager 电话服务
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService ()
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- getSystemService
- 关于Ant的中文文件名乱码问题的解决
- Flurry:手机社交游戏调查数据
- PHP与SQL注入攻击
- asp.net服务器端跳转页面的三种方法
- AT指令
- getSystemService
- silverlight绑定总结
- document对象referrer属性
- 在vc下和gcc下不同函数名,可使用宏来判断处理
- 账务管理软件开发中碰到的一些问题
- unsigned short 类型转换成4字节Byte数字
- Outlook 2007 答复邮件中不能使用插入图片功能
- 判断来路执行跳转
- IBATIS操作ORACLE BLOB CLOB