生活在远方

是的,因为真正的生活是在远方

Android: Instant Heart Rate

最近一直偏向于搞iPad,对于Android的程序有点不怎么关心了。不过,今天在网络上闲逛,看到这个软件:Instant Heart Rate,立即安装了一下。 这个程序,顾名思义,就是测量人的心率。 它的原理就是:“人体血液颜色是由血液中的含氧量决定的,而每次心跳都会使血液里的氧含量增加,身体消耗掉之后血液的氧含量又会降低,所以血液的颜色由于氧含量的变化会产生周期性的改变。当你的手指在手机摄像头前划过,手机程序就会观察血液颜色的变化然后做出较高精确地测量。这个程序相对传统检测方式来说,非常节约时间而且可以随时使用。” 我测量了几次,和我上次体检时的心率相比误差在±2之间,还是很准的。 这个软件非常实用,也有医学原理作为依据。前令狐,你值得拥有!

Read the rest of this entry »

How Nexus One changed my mobile life

I have been using mobile phones for many years, but I just used it, not being influenced by it, until I got this one: Nexus One. The most application that I use on N1 is Email. Android 2.X supports Exchange accounts. This is really a must have for my office emails. How can I access [...]

Read the rest of this entry »

An Android application with map

I had read a few tutorials on how to develop an Android appication with map display. Today I had actually built one. I would like to summarize the key points/steps in making this application work. 1. First of all, get an Android Map API Key from Google. This actually involves two steps. Firstly, you will [...]

Read the rest of this entry »

Something to talk on iPhone and Android

猛禽写了一篇关于iPhone和Android的开放问题的文章。我虽然近来难得看妓术技术文章,不过猛禽这篇我还是看了一遍。随便说说我的想法吧。 我最早接触电脑是用的Apple II,高中的时候在上面编程玩,编了一个图书馆的管理程序,用的是文本数据库,Basic语言。这个程序当年还获得了省二等奖。顺便说一句,当时用的中文系统是一个盗版的…… 在我看来,一个产品的成功(或者不成功)的原因很多,绝对不能简单的用操作系统、硬件、SDK的开放与否中的任意一个来解释,还必须加上特性、市场、用户群、应用等等方面。 ===========

Read the rest of this entry »

用Nexus One来写WordPress的博客

刚入手的N1,于是自然而然开始试用各类软件。这篇文章就是用Wordpress for Android写的。还行! 只是它和WP2Laconica插件不兼容。如果选择在Wordpress for Android中“Publish”的话,会crash这个软件。但是post已经成功发布,只是由WP2Laconic创建的uri会不完整,而push到我的话痨站点的推也会不完整。 已经向WP官方报告了这个问题。 我个人认为,这个问题不算太大——毕竟用手机写博客很累,而如果真有这样的情况,先放一个draft上去也是不错的做法。

Read the rest of this entry »

Hello, My Android(三)

界面设计完成后,我要开始为那个Button的单击事件设计响应函数。 在Android中,事件的设计也很诡异。我们先来看代码:

Read the rest of this entry »

Hello, My Android(二)

接下来,我们继续看属于LinearLayout的子控件的两个控件:TextView和Button。有关Android界面中可以用到的Widget有哪些我会在以后再描述。 ===================

Read the rest of this entry »