本文详细介绍了 Android 应用编程中 Activity 的生命周期、通信方式和 Intent Filter 等内容,并提供了一些日常开发中经常用到的关于 Activity 的技巧和方法。通过本文,你可以进一步了接 Android 中 Activity 的运作方式。

详解 Android 的 Activity 组件

Activity 的生命周期

和 J2ME 的 MIDlet 一样,在 android 中,Activity 的生命周期交给系统统一管理。与 MIDlet 不同的是安装在 android 中的所有的 Activity 都是平等的。

Activity 的状态及状态间的转换

在 android 中,Activity 拥有四种基本状态: 更多相关的内容 »
comments 讨论   addto 把此链接加入于...  recommend 与朋友分享   report 已已沉

和 J2ME 的 MIDlet 一样,在 android 中,Activity 的生命周期交给系统统一管理。与 MIDlet 不同的是安装在 android 中的所有的 Activity 都是平等的。

Activity 的状态及状态间的转换

在 android 中,Activity 拥有四种基本状态:">submit '详解 Android 的 Activity 组件' to digg   submit '详解 Android 的 Activity 组件' to reddit   submit '详解 Android 的 Activity 组件' to Pligg   submit '详解 Android 的 Activity 组件' to yahoo   |   书签  

Activity之間的Inter-process溝通

<< 摘錄說明 >>

 

    更多相关的内容 »
comments 讨论   addto 把此链接加入于...  recommend 与朋友分享   report 已已沉

 

    submit 'Activity 之間的Inter-process溝通' to digg   submit 'Activity 之間的Inter-process溝通' to reddit   submit 'Activity 之間的Inter-process溝通' to Pligg   submit 'Activity 之間的Inter-process溝通' to yahoo   |   书签  

2010 will be the year of consolidation of internet usage via mobile devices. According to internetnews.com, which reports a Gartner analysis, mobile device sales will rise (9%) in 2010. This scenario will impose to internet companies, online newspapers, bloggers, to provide mobile versions of their websites to simplify the fruition of their contents and enlarge their audience. In this post I prepared a roundup of code snippe 更多相关的内容 »
comments 讨论   addto 把此链接加入于...  recommend 与朋友分享   report 已已沉

无线淘宝演进史

从09年初接手淘宝手机网站前端开发的工作至今,转眼已是一年。一步步看着手机淘宝从最初的beta版本到今天的样子,感慨良多。

手机网站开发,有着许多不为人知的困难:

一是可参考的资料太少,大部分手机网站都处于起步阶段,很多的时候都是摸着石头过河,而鉴于淘宝自身的特殊性,也使得我们在参考成功案例之余,要做更多的思考;

二是兼容性工作异常艰辛,难度一点也不比web网站的兼容性工作来的低(关于这点,请参见我之前的文章);

再者作为一个手机网站的前端开发,也往往容易被人忽视(包括我们自己),大家也许会觉得做好一个手机网站能有多难,了解一点XHTML、一点 CS 更多相关的内容 »
comments 讨论   addto 把此链接加入于...  recommend 与朋友分享   report 已已沉

从09年初接手淘宝手机网站前端开发的工作至今,转眼已是一年。一步步看着手机淘宝从最初的beta版本到今天的样子,感慨良多。

手机网站开发,有着许多不为人知的困难:

一是可参考的资料太少,大部分手机网站都处于起步阶段,很多的时候都是摸着石头过河,而鉴于淘宝自身的特殊性,也使得我们在参考成功案例之余,要做更多的思考;

二是兼容性工作异常艰辛,难度一点也不比web网站的兼容性工作来的低(关于这点,请参见我之前的文章);

再者作为一个手机网站的前端开发,也往往容易被人忽视(包括我们自己),大家也许会觉得做好一个手机网站能有多难,了解一点XHTML、一点 CS">submit '手机网站开发必修课[2009总结版]' to digg   submit '手机网站开发必修课[2009总结版]' to reddit   submit '手机网站开发必修课[2009总结版]' to Pligg   submit '手机网站开发必修课[2009总结版]' to yahoo   |   书签  

A few months ago I ventured into the world of Mobile development and created an application (Hudson Helper) for both iPhone and Android. This article is about my experiences, comparing Android and iPhone development with a focus on tools, platform and the developer experience.

Before going much further I should note that my comparison is with considerable bias. I’ve spent the past 12+ 更多相关的内容 »
comments 讨论   addto 把此链接加入于...  recommend 与朋友分享   report 已已沉

Before going much further I should note that my comparison is with considerable bias. I’ve spent the past 12+">submit 'Android versus iPhone Development: A Comparison' to digg   submit 'Android versus iPhone Development: A Comparison' to reddit   submit 'Android versus iPhone Development: A Comparison' to Pligg   submit 'Android versus iPhone Development: A Comparison' to yahoo   |   书签  

Not many developers speak Objective C, the Mantra for writing iPhone applications. And majority of the developers don’t own Mac either, so what is the way to go ?

Of course one can buy a macbook and do it. Here’s what will make it possible do all that on Windows, Linux

< 更多相关的内容 »
comments 讨论   addto 把此链接加入于...  recommend 与朋友分享   report 已已沉
开发symbian的GUI应用是有模板的,用Carbide C++的工程向导可以自动生成程序的基本框架。不过可能与安装的SDK版本有关,我现在只能生成一个AppUi一个Container的常规模板(以前用 2nd FP3时还可以生成多个view多个container的视图模板)。

不管是哪一种模板,它们共同的部分是入口函数、Application和Document。即以下三个文件是所有工程都具有的:

1)有一个与工程同名的cpp文件,它只提供了两个全局函数,是程序执行的入口,负责创造Application。这个文件我们不用管它。

2)有一个以工程名+Application命名的类,派生于CAknApplication,它负责创建文档类并提供应用的UID。一般情况下它也不需 要我们操心,但是因为它提供了一个函数OpenIniFileLC,如果我们需要在启动程序时加载ini文件中的配置,可以重载它。

3)有一个以工程名+Document命名的类,派生于CAknDocument,它负责创 更多相关的内容 »
comments 讨论   addto 把此链接加入于...  recommend 与朋友分享   report 已已沉

EZLIB library, which has been part of the Symbian SDKs now for some time, provides data compression and decompression functionality. The file compression functionality is provided by CEZFileBufferManager,which is very poorly documented(Actually if there ever would have been Razzies for code documentation Symbian documentation team would win it quite convincingly). Moving on,I needed this file compression functionality and then had to waste some time to get it working.But the rest of you need 更多相关的内容 »
comments 讨论   addto 把此链接加入于...  recommend 与朋友分享   report 已已沉