Android ActivityManager 与 WindowManager
有人可以在下面详细解释一下吗
1- What is the use of ActivityManager & WindowManager?
2- What is the difference between ActivityManager & WindowManager?
Can someone please explain below in detail,
1- What is the use of ActivityManager & WindowManager?
2- What is the difference between ActivityManager & WindowManager?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
窗口管理器:- 它负责组织屏幕。它分配表面并决定它们(应用程序)的去向以及它们如何分层。在为所有应用程序创建表面时,它们直接绘制到表面中,而无需通过窗口管理器。
活动管理器:- 使用活动管理器,Android 系统管理一系列处于不同状态(启动、运行、暂停、停止、销毁)的活动。
关于活动、窗户和表面的一些基本知识。
用于获取有关应用程序关键概念、活动和资源的信息 检查此链接
Window Manager :- It is responsible for organizing the screen. It allocates surface and decide where they(Applications) go and how they are layered. At create surface for all the applications and they draw directly into the surface without going through the Window Manager.
Activity Manager:- Using the Activity Manager, the Android System manages a stack of activities which are in different states (starting, running, paused, stopped, destroyed).
Some basic things regarding activitys, windows and surfaces.
for getting information regarding Applications key concepts, activities and resources check this link
class ActivityManager
管理任务、堆栈、何时显示和隐藏Window
内容、销毁。系统更改感知,此类提供有关活动、服务和包含流程的信息并与之交互。ActvityManager
属于android.app
管理屏幕,它的状态、在堆栈中的位置和进程
interface WindowManager extends ViewManager
WindowManagerImpl 管理视图和表面本身,专利视图如果存在,将它们绑定到特定的应用程序Display
WindowManager
属于android.view
管理视图,它是 x,y,z 轴和
动画GoogleIO17 中的主题
class ActivityManager
Manage task, stack, when to show and hideWindow
content, destroy. System change aware, This class gives information about, and interacts with, activities, services, and the containing process.ActvityManager
belongs toandroid.app
Manage screens, it's state, position in stack and process
interface WindowManager extends ViewManager
WindowManagerImpl Manage views and surfaces itself, patent view if exist, bound them to a particular appDisplay
WindowManager
belongs toandroid.view
Manage views, it's x,y and z axis and animations
P.s. Topic in GoogleIO17