Login or Sign up

All Photos Matching "android"

No photos matching tag.

All Bookmarks Matching android

tigerz
March 14, 2010

Cyrket - Android Market Browser

http://www.cyrket.com/

android (1)

All Blog Posts Matching "android"

These are blog posts from everyone:

Build Android Emulator on Ubuntu 10.10

Android:用定时器 timer 刷新界面

在 Android 平台上,界面元素不能在定时器的响应函数里刷新。 以下这段代码中,mButton 的文本并不变化。 public class AndroidTimerDemo extends Activity { private Button mButton; private Timer mTimer; private TimerTask mTimerTask; /* Called when the activity is first created. / @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mButton = (Button) findViewById(R.id.Button01); mTimer = new Timer(); mTimerTask = new TimerTask() { @Override public void run() { Log.d("AndroidTimerDemo", "timer"); Calendar cal = Calendar.getInstance(); mButton.setText(cal.toString()); } }; mTimer.schedule(mTimerTask, 1000, 1000); } } 在 Android 平台上,UI 单元必须在 Activity 的 context 里刷新。 为了达到想要的效果,可以使用 Message Handler。在定时器响应函数里发送条消息,在 Activity 里响应消息并更新文本。 public class AndroidTimerDemo extends Activity { protected static final int UPDATE_TEXT = 0; private Button mButton; private Timer mTimer; private TimerTask mTimerTask; private Handler mHandler; /* Called when the activity is first created. / @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mButton = (Button) findViewById(R.id.Button01); mTimer = new Timer(); mHandler = new Handler(){ @Override public void handleMessage(Message msg) { switch (msg.what){ case UPDATE_TEXT: Calendar cal = Calendar.getInstance(); ...

Android 性能分析

找到软件系统里最费时的代码,是提高系统性能的一个直接方法。 目前各种语言和平台基本上都有相应的工具做这种分析,Android 上也提供了一个 Traceview 工具。 Traceview 工作方式 ------------------- 要使用 Traceview,首先要生成 trace 文件。在需要跟踪的代码开始前调用 Debug. startMethodTracing(),在结束处调用 Debug.stopMethodTracing()。通常可以在 onCreate() 中调用 startMethodTracing(),在 onDestroy() 中调用 stopMethodTracing()。例如: // start tracing to "/sdcard/babytracker.trace" Debug.startMethodTracing("babytracker"); // ... // stop tracing Debug.stopMethodTracing(); 如果是在模拟器上生成 trace 文件,需要先创建一个 sd 文件。 生成 trace 文件后,把文件导出,然后即可用 traceview 工具查看。 其中 Inclusive time 表示函数和被它调用的函数总用时,Exclusive time 表示函数本身用时。 在 startMethodTracing() 调用后,程序的性能会降低,所以不要在最后发行版里使用。不过可以分析出函数的相对用时。

在 Eclipse 中浏览 Android 的源代码

最近在做另一个 Android 项目,经常需要看开发文档。本来 Android 源代码里有文档,但是 Android SDK 自带的库不能指定源代码路径。 当然,先 google 一下。找到了 Eric Burke 的一篇博客。他通过 Android 的源代码,找到了 android.jar 的源码路径,即sdk_dir/sources,只需要把 Android 源码放到该路径,再刷新一下工程,可以直接浏览了! 不过有个问题,Android 的源代码散落在不同的目前,想把它们复制到一个目录不容易。 Dr. Michael Forster博客给出了一个 Python 脚本来解决这个问题。

荔枝地图 Lycheemap

Lycheemap is a map application for android. It's features including: - Online/off-line map browse. - Store the map data on SD card. - Show the current position based GPS module. - Map source switching. - Off-line map data creating. Download -------- apk map db The map data just includes Shenzhen City. Put the data file under iputy/lycheemap directory on the SD card. 荔枝地图 --------- 开始动手做这个地图软件的时候, 正好荔枝上市. 有位同事从老家带了一大包荔枝拿到办公室分享, 遂得名荔枝地图. 荔枝地图 是一个基于Android的地图工具。它的特性包括: - 在线/离线查看地图。 - 根据GPS数据标示当前位置。 - 地图源切换。 - 离线的地图数据制作工具。 Lycheemap snapshot 下载 ---- apk文件 地图文件 地图文件原始数据从 ditu.google.cn 得来, 版权由谷歌公司所有. 目前只包括了深圳市地图. 地图文件要存放在 SD 卡 iputy/lycheemap 目录下. TODOs ------ - 目前离线地图数据搜索速度还有待提高. - 地图文件是用一个单独的软件制作的, 等有空制作成一个软件包一并发布.

All Projects Matching android

LycheeMap (lycheemap)
LycheeMap is a map application for android. It's features including: - Online/offline map browse. - Store the map data on SD card. - Show the current position based GPS module. - Map source swich. - Offline map data creating. 荔枝地图 是一个基于Android的地图工具。它的特性包括: - 在线/离线查看地图。 - 根据GPS数据标示当前位置。 - 地图源切换。 - 离线的地图数据制作工具。
Members: 1 Tasks: 0 Topics: 0 Wiki Pages: 1
android map

All Project Topics Matching android

All Project Tasks Matching android

All Tribes Matching android

All Tribe Topics Matching android

All Wiki Articles Matching android

tigerz
Jan. 14, 2010

LycheeMapIntro

LycheeMap is a map application for android.