共 10 篇文章
显示摘要每页显示  条
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:state_window_focused="true" android:drawable="@drawable/btn_power_on_pressed"></item> <item android:state_pressed="...
从这里我们看到,其实数组R.styleable.ViewDrawableStates里其实就是R.attr.state_pressed,R.attr.state_focused,R.attr.state_selected ,R.attr.state_window_focused和 R.attr.state_enabled 的集合。用语言总结一下View.stateSetUnion函数的作用,将状态集合stateSet1和stateSet2里的状态值,按照状态值在数组R.styleable.ViewDrawableSt...
Activity pausing过程 Activity pausing过程有3种情况: 1. 第一种情况是从一个activity启动另一个activity的同时,也伴随着前一个activity的pause过程。下面给出整个stop过程的时序图: 在stop中有一个很重要的概念就是activity idle状态,不论是activity被新启动的activity完全覆盖,还是activity被finish,也就是activity的stop...
1.3.5.2 查找可复用的task 以下3种条件需要检查是否有有task可复用。设置了FLAG_ACTIVITY_RESET_TASK_IF_NEEDED,AMS会对复用的task作如下处理,下面称这个可复用的task为复用task:至此,整个Task复用,已经activity复用的过程就介绍完了,如果没有可复用的activity,则需要启动一个新的activity,如果有可复用的activity,那么activity的启...
在建立消息循环之前,会通过thread.attach(false)来初始化应用程序的运行环境,并建立activityThread和ActivityManagerService之间的桥mAppThread, mAppThread是IApplicationThread的一个实例。还需要通过ProcessRecord中的thread(IApplication)变量,调用它的scheduleLaunchActivity方法在ActivityThread中创建新的ActivityRecord记录(之...
【转】StartService\BindService详细时序图。
几个函数指针的原型为:typedef void (*RIL_RequestFunc) (int request, void *data, size_t datalen, RIL_Token t);typedef RIL_RadioState (*RIL_RadioStateRequest)();typedef int (*RIL_Supports)(int requestCode);typedef void (*RIL_Cancel)(RIL_Token t);typedef const char * (*RIL_GetVersion)...
Intent intent = new Intent(Intent.4、Intent.ACTION_NEW_OUTGOING_CALL实际字符串android.intent.action.NEW_OUTGOING_CALL,通过查找知道了packegs/phone下面的androidmanifest.xml中OutgoingCallReceiver Receiver接收此intent消息。RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);RIL_onUnsolicitedResponse (RIL_UNSOL_RESPONSE_CALL...
RIL_onUnsolicitedResponse (RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED, NULL, 0);.notifyRegistrants(new AsyncResult(null, null, null));b、事件通知部分==>PhoneFactory.javamakeDefaultPhones() sPhoneNotifier = new DefaultPhoneNotifier(); useNewRIL(context); phone = new GSMPhone(context, new RIL(context), sPhoneNotifier...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部