文章列表
http://dev.10086.cn/cmdn/supesite/?uid-103795-action-viewspace-itemid-4620
6. linux系统启动流程分析
6.1 桌面操作系统启动流程(redhat,federa,ubuntu)
6.2 小型嵌入式系统启动流程
6.3 android 系统启动流程
==============
6.1 桌面操作系统启动流程(redhat,federa,ubuntu)
ubuntu从6.10开始逐步用upstart代替原来的sysinit,进行服务进程的管理。为了对原有的init实现向后兼容,
目前ubuntu中与init相关的几个目录 ...
Configuration userConfig = new Configuration();
Settings.System.getConfiguration( getContentResolver(), userConfig );
Calendar cal = Calendar.getInstance( userConfig.locale);
TimeZone tz = cal.getTimeZone();
when the user changes the time zone in the Settings app then the above will get the
newly u ...
设计:
使用自定义view显示动态变化的内容。比如RSS,Mail,Message等自动接收到的信息。
当有内容发生变化的时候,Widget先将Model内容改变,然后呼叫自定义view的invalidate()
触发onDraw去刷新页面内容。
问题:
普通情况下可以正确处理自动刷新,当将手机转屏后会对内容的变化无响应,但是如果手动点击
屏幕去触发其刷新是有效果的。
原因:
widget转屏后显示的view是新生成的一个对象,与原本显示的view已经不一样了。
解决:
在自定义view中增加一个属性,记录当前显示view的引用,这样当有内容变化的时候去刷新此
引用,可实现实时刷新内容。
用R ...
【转】 android UI优化
2010-05-20 17:22
转载自 liuhuman
最终编辑 liuhuman
在Android中最常用LinearLayout表示UI的框架,而且也是最直观和方便的方法。例如创建一个UI用于展现Item的基本内容。如图所示:
线框图:
直接可以通过LinearLayout快速的实现这个UI的排列:
?View Code XML
<LinearLayout xmlns:
android="http://schemas.android.com/apk/res/android"
android:l ...
状态栏(StatusBar)画面布局分析
(2010-12-16 09:52:20)
转载
标签:
状态栏
StatusBar 图标显示流程 (2010-11-05 15:23:29)转载
分类: Android学习
公司前些天发现一个状态栏显示图标不正确的Bug,昨天也转给我,看我能帮上什么忙,我对状态栏完全没有接触,正好趁这个机会,粗略看了下相关的代码,记下来一些自己 ...
It works on my 2.2 Emulator. Don't have a device in hand to test. Let me
know of if this works on device and/or you can improve it.
OnCreate of your Service:
@Override
public void onCreate() {
super.onCreate();
Toast.makeText(getBaseContext(),"onCreate", Toast.LENGTH ...