统计

留言簿(1)

DB

Others

QA

Tech Website

阅读排行榜

评论排行榜

Android Dev

【转】Painless threading
     摘要: 写在前面:写Android程序有一个很重要的原则,不阻塞UI线程。因此Android提供了5种方法来,让一些耗时的作业在其它线程中执行,然后把结果返回给UI线程,以免阻塞UI线程。  阅读全文

posted @ 2011-08-23 09:25 XXXXXX 阅读(348) | 评论 (0)  编辑

【转】selector in Android
     摘要: android的selector的用法:
首先android的selector是在drawable/xxx.xml中配置的。
先看一下listview中的状态:
把下面的XML文件保存成你自己命名的.xml文件(比如list_item_bg.xml),在系统使用时根据ListView中的列表项的状态来使用相应的背景图片。drawable/list_item_bg.xml  阅读全文

posted @ 2011-08-16 23:12 XXXXXX 阅读(277) | 评论 (0)  编辑

UI/Application Exerciser Monkey
     摘要: The Monkey is a command-line tool that that you can run on any emulator instance or on a device. It sends a pseudo-random stream of user events into the system, which acts as a stress test on the application software you are developing.

The Monkey includes a number of options, but they break down into four primary categories:

Basic configuration options, such as setting the number of events to attempt.
Operational constraints, such as restricting the test to a single packag  阅读全文

posted @ 2011-08-13 10:14 XXXXXX 阅读(495) | 评论 (0)  编辑

Android Debug Bridge

posted @ 2011-08-11 13:22 XXXXXX 阅读(885) | 评论 (0)  编辑

【转】深入理解Android消息处理系统
     摘要: Android系统中Looper负责管理线程的消息队列和消息循环,具体实现请参考Looper的源码。 可以通过Loop.myLooper()得到当前线程的Looper对象,通过Loop.getMainLooper()可以获得当前进程的主线程的Looper对象。  阅读全文

posted @ 2011-07-29 11:53 XXXXXX 阅读(253) | 评论 (0)  编辑

Glossary of Android
     摘要: The list below defines some of the basic terminology of the Android platform.

.apk file
Android application package file. Each Android application is compiled and packaged in a single file that includes all of the application's code (.dex files), resources, assets, and manifest file. The application package file can have any name but must use the .apk extension. For example: myExampleAppname.apk. For convenience, an application package file is often referred to as an ".apk".
Re  阅读全文

posted @ 2011-07-25 11:42 XXXXXX 阅读(301) | 评论 (0)  编辑

Manifest.permission Summary

posted @ 2011-07-24 15:15 XXXXXX 阅读(692) | 评论 (0)  编辑

获取Android的Java源代码并在Eclipse中关联查看的最新方法

posted @ 2011-07-09 09:38 XXXXXX 阅读(229) | 评论 (0)  编辑

Android Coding for Life-Battery Life

posted @ 2011-07-08 09:37 XXXXXX 阅读(1562) | 评论 (0)  编辑

Android好文章

posted @ 2011-06-01 15:17 XXXXXX 阅读(209) | 评论 (0)  编辑

【转】Avoiding Memory Leaks
     摘要: Android applications are, at least on the T-Mobile G1, limited to 16 MB of heap. It's both a lot of memory for a phone and yet very little for what some developers want to achieve. Even if you do not plan on using all of this memory, you should use as little as possible to let other applications run without getting them killed. The more applications Android can keep in memory, the faster it will be for the user to switch between his apps. As part of my job, I ran into memory leaks issues in Andr  阅读全文

posted @ 2011-06-01 14:52 XXXXXX 阅读(332) | 评论 (0)  编辑

【转】Android = Java ?
     摘要: The Java community is now swamped with discussions about Oracle's patent suit against Google's Android platform. I've been contributing my opinion in several places, but there is one critical topic that needs repeating the same comments everywhere... so, this blog spills the beans once and completely.  阅读全文

posted @ 2011-05-31 11:06 XXXXXX 阅读(541) | 评论 (0)  编辑

Activity Lifecycle
     摘要: Activities in the system are managed as an activity stack. When a new activity is started, it is placed on the top of the stack and becomes the running activity -- the previous activity always remains below it in the stack, and will not come to the foreground again until the new activity exits.  阅读全文

posted @ 2011-05-31 09:31 XXXXXX 阅读(279) | 评论 (0)  编辑