
android
文章平均质量分 71
rx_wen
这个作者很懒,什么都没留下…
展开
-
process agnostic feature
Being one of the most eye-catching terms today, android has many creative features. The most revolutionary one, in my opinion, is process agnostic. This is not a term used in official document, but I prefer to to use it since it implies this feature well e原创 2009-11-16 08:43:00 · 484 阅读 · 0 评论 -
understanding the android media framework
android media framework is built on top of a set of media libraries, including OpenCORE, vorbis and sonivox. So one of goal of android media framework is to provide a consistent interface for all services provided by underlying libraries and make them tran原创 2010-01-04 21:46:00 · 950 阅读 · 0 评论 -
main thread in android application
In android sdk document, it's mentioned that all components(Activity, Service, etc) run on the main thread. The main thread is the thread where our code works on.Conventionally, when talk about a Service, we think it this way: void service() { whil原创 2009-12-04 08:48:00 · 961 阅读 · 0 评论 -
implement drag and drop on android
Nowadays, drag and drop is a frequently seen feature on touch screen devices. Tthis post introduces the basic idea of how to implement drag and drop on android.On android, touch event is composed of a series events.First, user puts his finger on an elem原创 2010-07-29 21:34:00 · 1896 阅读 · 1 评论 -
looper and handler in android
It's widely known that it's illegal to update UI components directly from threads other than main thread in android. This android document (Handling Expensive Operations in the UI Thread) suggests the steps to follow if we need to start a separate thread t原创 2010-08-22 19:10:00 · 672 阅读 · 0 评论 -
understanding drawBitmapMesh on android
The Canvas.drawBitmapMesh method on android is a like a mystery to me while I looked at the BitmapMesh sample. Though I tried to get some hints from the official document, it didn't help much. After played it with several tests, I got some ideas about how原创 2010-09-24 20:52:00 · 965 阅读 · 0 评论 -
learning opencore through unit testing
Android 2.3 gingerbread was officially released. A big improvement is this version is in media framework, as stated in platform highlights:Media FrameworkNew media framework fully replaces OpenCore, maintaining all previous codec/container support for enc原创 2010-12-08 22:00:00 · 780 阅读 · 0 评论 -
android touch event summary
In "implement drag and drop on android", I wrote the rules how touch event can be passed to the touched view's parent, and how a parent can intercept the touched view's event. On a device without mouse, Click and LongClicked events are also strongly relate原创 2010-10-16 10:05:00 · 1029 阅读 · 0 评论 -
tools for working with android jni
When we make use of jni on android, it's a error-prone task to manually write the native function name for a given java native function. Though there are rules for us to follow, no one would like to memorize that. javah to the rescue.For example, for the原创 2010-12-14 23:07:00 · 564 阅读 · 0 评论 -
port exosip to android
Port exosip to android platform isn't a difficult task because exosip doesn't rely on any special system calls that aren't available on android. It only requires osip to compile, which can also be easily ported.As an example, I created two applications to原创 2010-12-19 17:29:00 · 2398 阅读 · 0 评论 -
utility for debugging android native application
agdb is a utility aims to ease the task of debugging android native application. Its working mechanism is similar to ndk-gdb. But it's intended to assist debugging native applications in android source tree, not for application created with ndk.It does f原创 2011-01-13 10:05:00 · 755 阅读 · 0 评论 -
streaming audio on android
Streaming media refers to the capability of playing media data while the data is being transferred from server. The user doesn't need to wait until full media content has been downloaded to start playing. In media streaming, media content is split into sma原创 2010-04-25 20:12:00 · 1078 阅读 · 0 评论 -
adb for remote connections
The adb tool in android sdk is convenient utility for debugging and control android emulators. One of its powerful features is it can forward a tcp port on local machine to an emulator running on the same machine.After you run the adb forward tcp:hostport原创 2009-11-26 14:38:00 · 604 阅读 · 0 评论 -
native and java performance on android
A lot of times when I saw someone heard that the main stream developing language on android platform is java, his first response would be "really? what about performance?". I've seen lots of similar responses when talking about c++ and c# on normal pc. Per原创 2009-11-12 08:33:00 · 445 阅读 · 0 评论 -
logging in android
Android provides a set of powerful log utilities to make our developing life easier. If you've ever used the OutputDebugString function and the DebugView on windows, you'll find they works very similar to android's counterpart in the sense of user experien原创 2009-11-11 11:42:00 · 519 阅读 · 0 评论 -
Beginning Android Development
Recently, I get start doing some development on android platform. Having skimmed through android sdk document, I find it’s a very interesting platform with a lot of new concepts compared to other platforms. So, I'd like to write a serial of blog entries to原创 2009-10-27 08:41:00 · 527 阅读 · 0 评论 -
native programming with android building system
In the previous post, native programming on android, I showed how to use code sourcery toolchain to do native programming on android. But in that way, we must link c library statically into our application, which is not desirable. So, in this post, I'll sh原创 2010-02-01 20:58:00 · 530 阅读 · 0 评论 -
android property system
Property system is an important feature on android. It runs as a service and manages system configurations and status. All these configurations and status are properties. A property is a key/value pair, both of which are of string type.From the sense of f原创 2010-01-07 22:19:00 · 668 阅读 · 0 评论 -
communicate with service on android
While doing android programming, it's a common sense to use Activity to interact with users and use Service to perform time consuming tasks (actually, such tasks are usually performed on a new thread spawned by the service). A classic example is media play原创 2009-12-09 08:50:00 · 619 阅读 · 0 评论 -
native programming on android
Besides programming with java, we're also able to do native programming with c or c++ on android platform.To do so, we need a cross compiler target on arm processor for our working platform( windows or linux). So I downloaded Sourcery G++ Lite 2009q3-68 fo原创 2009-11-09 09:31:00 · 972 阅读 · 1 评论 -
View android source code in eclipse
It's highly desired to be able to examine and debug into android framework source code. Eric Burke showed how he figured out where to put the source code so that ecplise will associate the android.jar with the corresponding source code. Unfortunately, it d原创 2009-10-28 08:35:00 · 574 阅读 · 0 评论 -
use ffmpeg to setup streaming server on android
ffmpeg is a powerful media library. It provides ffserver tool that can be used to setup a streaming server.Here is how to compile ffmpeg for android, using CodeSourcery's cross compiler.1. Download and extract ffmpeg source code.2. Use below commands t原创 2010-05-22 10:03:00 · 1320 阅读 · 0 评论 -
video player demo in android
In this post, I'll show some basic operations in android with a simple video player. The demo shows how to:Use explicit intentList video files with ListView, ContentProvider & MediaProvider Retrieve data from another Activity with startActivityForResult原创 2009-11-30 08:24:00 · 691 阅读 · 0 评论 -
view call stack of crashed application on android
On android, when a process crashes in native code, the call stack of the process will be saved to a log file in /data/tombstomes/, and written to logcat as well. The information is helpful for debuggi原创 2011-01-25 09:10:00 · 1150 阅读 · 0 评论