Android中各种Manager类的使用(一):概述

xiaoxiao2021-02-28  111

Android中常常使用getSystemService(String )来获取系统服务,返回Object类型的值,使用context来调用,一般调用格式为context.getSystemService(String)。返回各种管理器Manager类型,翻查官方文档,在android.app.Activity查看帮助,发现函数参数一般为常量,常量继承自android.content.context,主要有如下几种:

后续会有具体的Manager类的使用详解,未完待续。

转载请注明原文地址: https://www.6miu.com/read-2631083.html

最新回复(0)