原创 從系統看startService的生命週期

一、簡介 完整的客戶端生命週期:onCreate() → onStartCommand() → stopService → onDestroy() 如果存在多個client啓動同一個service, 只需一個client便可以st

原创 從系統看bindService的生命週期

一、簡介 完整的客戶端生命週期:onCreate() → onBind() → unbindService → onUnbind() → onDestroy() 二、bindService的流程 8-12 Service的on

原创 bind Service 基礎

一、bind service涉及到的數據結構 1、概覽 ServiceRecord首先針對intent,維護一個IntentBindRecord map; 在IntentBindRecord中又針對ProcessRecord,維護

原创 PIP模式詳述

一、進入PIP模式 1、概述流程 創建pip stack → 創建新的TaskRecord → activity reparent到newTask → newTask reparent到pip stack → resumeFoc