07 2015 档案

android 进程/线程管理(一)----消息机制的框架
摘要:一:android 进程和线程 进程是程序运行的一个实例。android通过4大主件,弱化了进程的概念,尤其是在app层面,基本不需要关系进程间的通信等问题。 但是程序的本质没有变,尤其是多任务系统,以事件为驱动的软件系统基本模式都是如下: 程序的入口一般是main: 1.初始化: 比如创建窗口,申 阅读全文

posted @ 2015-07-30 18:28 Joyfulmath 阅读(14881) 评论(2) 推荐(0)

android的屏幕保持常亮
摘要:1.Wake Lock是一种锁的机制在Manifest.xml文件里面用user-permission声明。代码如下:这种方法,在安装apk时,系统会提示安装人是否允许使用禁止休眠功能。为了不对其他程序造成影响,启用和关闭屏幕常亮的代码一般被放在 Activity 的 onResume() 和 on... 阅读全文

posted @ 2015-07-24 15:34 Joyfulmath 阅读(493) 评论(0) 推荐(0)

android network develop(3)----Xml Parser
摘要:Normally, there are three type parser in android. Xmlpullparser, DOM & SAX. Google recomand Xmlpullparser to doing this. But to parser xml files or in 阅读全文

posted @ 2015-07-16 10:44 Joyfulmath 阅读(255) 评论(0) 推荐(0)

android network develop(2)----network status check
摘要:Check & Get network status Normally, there will be two type with phone network: wifi & mobile(gprs,3g,4fg) So, we have can test connect and get the co 阅读全文

posted @ 2015-07-15 10:25 Joyfulmath 阅读(539) 评论(0) 推荐(0)

android network develop(1)----doing network background
摘要:Develop network withHttpURLConnection & HttpClient.HttpURLConnection islightweight withHttpClient.So normally, you just needHttpURLConnection.NetWork ... 阅读全文

posted @ 2015-07-07 16:11 Joyfulmath 阅读(399) 评论(0) 推荐(0)

android 开发小记
摘要:1.fragment & activitywhen config changes, activity will restart but fragment can be store.2.textviewCapstrue3.Service Running,When service is running ... 阅读全文

posted @ 2015-07-07 16:02 Joyfulmath 阅读(169) 评论(0) 推荐(0)

导航

点击右上角即可分享
微信分享提示