本帖最后由 prolj 于 2010-08-27 11:41 编辑 地址如下:https://www.axurer.com/?p=1151 android activity and Task Design GuidelinesThis document describes core principles of the android application framework, from a high-level, user-centric perspective useful to interaction and application designers as well as application developers.It illustrates activities and tasks with examples, and describes s...
by killeder - 移动操作系统 - 2010-08-28 15:00:59 阅读(6680) 回复(4)
当然最终还是没有能够解决,但是经历了以下阶段。 首先,使用sdk中的hieracyviewer,在模拟器上可以工作,在真机上不能工作。跟踪源码,发现它是往真机上的viewserver服务发命令,而viewserver又往windowmanager服务发命令,而windowmanager又是往ViewRoot上发命令,最终转到View上的dump,但是这个是受debug控制的,非debug版本压根就没这功能。F*CK.方案A失败。 然后,想使用JAVA的反射机制来做,开工写代码,先列出android上...
Introduction This tutorial will show you how to create a sub-activity from a calling-activity, and process the results produced by the sub-activity, if you want to do so. Also, the various ways of launching a sub-activity are covered, along with the android activity history stack. A subclass of activity is also provided that makes it trivial to launch sub-Activities and respond to results fro...
同长一个fragment作为一个activity UI的一部分,并嵌入到整个结构中。
两种方式 增加一个fragment到activity layout中:
4.1 在activity layout文件中声明fragment[code]
activity 是我们 开发 android应用程序最重要的一个类。这个类的内容比较多,我理解多少 就写多少,希望你喜欢:) 这篇文章会涉及到以下几个内容 一 activity的生命周期 二 让activity变成一个窗口:activity属性设定 三 你后台的activity被系统回收怎么办:onSaveInstanceState 四 调用与被调用:我们的通信使者 - Intent 一 activity的生命周期 和其他手机平台的应用程序一样,android的应用程序的生命周期是被统一掌控 的,...
对 http://code.google.com/android/reference/android/app/activity.html 进行了翻译整理,以便对activity类有一个整体了解。 activity类处于android.app包中,继承体系如下: 1.java.lang.Object 2.android.content.Context 3.android.app.ApplicationContext 4.android.app.activity activity是单独的,用于处理用户操作。几乎所有的activity都要和用户打交道,所以activity类创建了一个窗口,开发人员可以通过 setContent...
intent的一个应用--activity的跳转! 其实Intent的应用很广,今天我把前两天学的Intent的一个应用共享一下,很容易。 基本步骤就是 Intent intent = new Intent();//新建一个activity intent.setClass(Testactivity.this, login.class);//从本类的activity跳转到目标activity。 startactivity(intent);//执行目标activity Testactivity.this.finish();//退出第一个activity 注:还要在android...