摘要:
LayoutInflater类作用:实例化一个布局XML文件到其相应的视图对象。Instantiates a layout XML file into its correspondingViewobjects. It is never used directly. Instead, usegetLayoutInflater()orgetSystemService(String)to retrieve a standard LayoutInflater instance that is already hooked up to the current context and correctly 阅读全文
随笔档案-2013年06月
屏蔽home键、重写home键操作
2013-06-05 23:02 by ...平..淡..., 3092 阅读, 收藏,
摘要:
背景:按下home键后,进入图库通过WifiDirect分享,此时获得的Intent为android.intent.action.MAIN,而按下back键进行操作,此时Intent是android.intent.action.SEND/android.intent.action.SEND_MUITIPLE分析:back键和home键的区别 KeyEvent.KEYCODE_BACK (back键)back键默认行为是finish处于前台的Activity,将该task从栈中弹出。即Activity的状态为Destroy状态为止,再次启动该Activity是从onCreate开始的(不会调用o 阅读全文
《深入理解Android(卷2)》笔记 7.第四章 深入理解PackageManagerService
2013-06-05 21:27 by ...平..淡..., 3142 阅读, 收藏,
摘要:
知识点1:PKMS启动流程SystemServer.java::ServerThread::run--->PKMS::main--->PKMS::构造函数如下,在PKMS的main函数中将PKMS服务添加到到ServiceManager中。public static final IPackageManager main(Context context, boolean factoryTest, boolean onlyCore) { PackageManagerService m = new PackageManagerService(context, factoryTest, . 阅读全文
浙公网安备 33010602011771号