摘要:
Activity Input validation: Test that an activity responds correctly to input values in an EditText View. Set up a keystroke sequence, send it to the activity, and then use findViewById(int) t... 阅读全文
随笔档案-2011年09月
android 横竖屏切换令人费解的地方(横屏切换竖屏调用两次onConfigurationChanged)及其个人看法
2011-09-28 22:17 by youxiachai, 5864 阅读, 收藏, 编辑
摘要:
Android学习之横竖屏切换与Activity生命周期的关系这篇文章有着很详细的报告….走近科学对于最后一点表达一下自己的看法…关于横屏切换竖屏调用两次,我特地的看了一下全键盘的手机,在观察中发现1,当推出键盘的时候,会触发硬件的改变,使手机竖屏变成了横屏2,当推进键盘的时候,合上手机的一刻,触发的是同一样的固件,由于,固件是无法辨别那个是推进,和推出,发出的是一样的信号,然后系统就会认为这是一个横屏改变,等到合上手机的时候系统再接受到一个信号,然后切换成竖屏.这样系统,认为横屏切换竖屏改变了两次,这样就导致调用了两次onConfigurationChanged();为了证明这点我写了以下代 阅读全文
android 虚拟机快捷键中英列表
2011-09-28 13:08 by youxiachai, 957 阅读, 收藏, 编辑
摘要:
Emulated Device Key 中文 Keyboard Key Home HOME Menu (left softkey) 菜单 F2 or Page-up button S... 阅读全文
android 的多任务之道(个人渣水平,无责任翻译)(目前到Design considerations)
2011-09-28 11:08 by youxiachai, 406 阅读, 收藏, 编辑
摘要:
Android is fairly unique in the ways it allows multiple applications to run at the same time.android 使用十分独特的方式 允许多任务在同一时间运行.Developers coming from a different platform may find the way it operates surprising.开发者在不同的平台中发现这种方式会出现意想不到的事情.Understanding its behavior is important for designing application 阅读全文
Eclipse下的项目管理插件介绍
2011-09-27 11:08 by youxiachai, 5888 阅读, 收藏, 编辑
摘要:
前言 最近,一直学习开源项目的代码,难免会碰到各种版本管理器,作为一名在校大学生,学校的课程完全没提及到,靠着自己的摸索,走了不少弯路,写个列表,望对大家有所帮助.顺便提一下,这里只说客户端,至于服务端,自行根据提供的资料学习CVS这里eclipse自带就有,也有一段历史,现在的开源项目很少用的,这里就不做介绍了.SVNEclipse插件:Subclipse:http://subclipse.tigris.org/下载Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x Zipped downloads: http: 阅读全文
android TraceView (图形化性能测试工具)使用入门笔记
2011-09-26 21:43 by youxiachai, 2789 阅读, 收藏, 编辑
摘要:
创建你TraceView1.在开始使用TraceView你要注意: 你的设备和模拟器必须设置SD card 和 你的程序拥有对SD card 具有读写操作的权限(<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />)2.在你的程序中使用TraceView // 开始跟踪然后自动保存到 "/sdcard/test.trace" Debug.startMethodTracing("test"); // ... // 停止跟踪 D 阅读全文
appWidget 简单入门学习笔记
2011-09-24 15:19 by youxiachai, 5829 阅读, 收藏, 编辑
摘要:
1,让桌面能够添加你的appWidget1,一个类,和2个xml//一个实现AppWidgetProvider的类public class TomAppWidgetProvider extends AppWidgetProvider {}<!--放在 res/xml 文件夹中命名为tom_appwidget_info.xml--><appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minWidth="294dp" a 阅读全文
android UI设计属性中英对照表(未修订)
2011-09-21 14:39 by youxiachai, 539 阅读, 收藏, 编辑
摘要:
英语 中文 备注 plurals 多义性 Animator ... 阅读全文
初识 sqlite 与 content provider 学习笔记
2011-09-18 21:09 by youxiachai, 3242 阅读, 收藏, 编辑
摘要:
1,SQLite 简单使用1,SQLite支持的数据类型NULL. The value is a NULL value.INTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.REAL. The value is a floating point value, stored as an 8-byte IEEE floating point number.TEXT. The value is a text string, 阅读全文
android 官方文档中的一些错误收集
2011-09-18 12:05 by youxiachai, 671 阅读, 收藏, 编辑
摘要:
1,Intents and Intent Filters 中<data> 的 说明 原文: For example, in the following URI, content://com.example.project:200/folder/subfolder/etc the scheme is "content", the host is "com.example.... 阅读全文
JNI 学习笔记
2011-09-16 12:06 by youxiachai, 61631 阅读, 收藏, 编辑
摘要:
1,先把c语言的编译环境搭建好,windows下这里使用mingw1,mingw具体配置配置环境变量: 打开:“我的电脑->属性->高级->环境变量->系统变量”编辑如下系统变量: 变量名 变量值 PATH C:\MinGW\bin; LIBRARY_PATH C:\MinGW\lib C_INCLUDEDE_PATH C:\MinGW\include CPLUS_INCLUDE_PATH C:\MinGW\include\c++\3.4.2;C:\MinGW\include\c++\3.4.2\mingw32;C:\Min... 阅读全文
Text-to-speech 入门与进阶学习笔记(android)
2011-09-10 23:27 by youxiachai, 7249 阅读, 收藏, 编辑
摘要:
1,入门:让TEXT朗读起来官方TTS朗读支持语言种类English英语French法语German德语Italian意大利语Spanish西班牙语不支持中文…//1,先写一个用来检查tts是否安装的方法private final static int CHECK_CODE = 1; public void checkTts(){ Intent checkIntent = new Intent(); checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); startActivityForResult(chec... 阅读全文
Intent进阶 和 Intent-filter 学习笔记
2011-09-09 11:55 by youxiachai, 10077 阅读, 收藏, 编辑
摘要:
1,Intent的基础用法Intent是android中各activity之间通信的一个很重要的类,一般我们是这么使用的//创建一个intentIntent intent = new Intent();//压值进intent中//intent是基于一种基于Map的数据结构//传我们的基本数据类型的可以之间key,value方式传值intent.putExtra("hello","Hello world");//但是,传一个对象的时要注意,该对象要实现序列化窗口才可以传值//putExtra(String name, Serializable value) 阅读全文