免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1556 | 回复: 0
打印 上一主题 下一主题

Google Android architecture [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-27 23:49 |只看该作者 |倒序浏览

The Android OS architecture is fairly traditional, but the service and application framework is interesting and modular.
In the 3 part video below the Android team introduces the key concepts:
Intent
A class which encapsulates the intent of the user to go to another Activity. For example “send mail” or “call number”.
When an Intent is emitted, the system will try and find the registered
Activity to handle it, and will start it on top of the Activity Stack.
Activity
A class implementing the UI screen to accomplish a task (like an
applet). There are some default Activities available (map, mail, …).
Custom Activities can plug in to replace the default ones, by
registering themselves with the Activity Manager. One application can
provide multiple Activities (mail app could provide 3 activities: list
email, view single email, compose email).
Service
For listening to music you need an application to continue running in
the background. Services can do that. Activities can connect back to
the Service. Some Services come with the system (location manager, XMPP
notifications from the server, …)


Views
Common controls that you can re-use to write your own Activity (a video control, a map control, a toast notification API, …)
Dalvik
Optimized JVM with good pre-loading, memory sharing across apps, and optimized bytecode and JIT.
Activity Stack
The OS keeps track of all the Activities currently running (and their
respective processes). But it can decide to dehydrate an Activity to
free-up memory. In that case, some data is serialized out of the
process, stored in the Activity stack, and the process can be killed.
Later on, this Activity can be recreated (new process, rehydrate saved
data, …).
How about the iPhone? Is it similar?
Also, a quick pointer to
Mono for Android
. It's exciting to see .Net being making progress on new platforms thru Mono (it also
runs on the iPhone
, but the convenient tools are not free. Too bad, I would run to the Apple store).
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/85805/showart_1882374.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP