Blogs
Android Google Maps Street View 使用方法
(Chinese Only)
以下是如何在 Android Google Maps 觀看 Street View 的方法:
1. 開啟 Google Maps

iPhone Google Maps Street View 使用方法
(Chinese Only)
終於 Google Maps Street View 可以在香港區使用了,以下是如何在 iPhone 內建的 Google Maps 使用 Street View,注意 iPhone OS 的版本至少是 2.2:
1. 開啟 Google Maps 後按右下方叫出選單。
Android Developer Lab - Hong Kong
Hong Kong is the last location of Android Developer Lab World Tour, and I attended this event yesterday (March 5, 2010)
iWalk/iUP 外置電(尿袋)使用報告
Expiry of the Debug Certificate error in Eclipse Android development
Just got this error from Mac version of Eclipse with Android SDK while compiling an android application.
To solve the problem, simply go to ./android and delete debug.keystore. The key will be expired automatically after one year of usage and you have to delete the old key so that new key will be created automatically.
http://developer.android.com/guide/publishing/app-signing.html
How to compile ffmpeg for iPhone
- Download and install the iPhone SDK 3.1.
- Get the latest gas-preprocessor and install it in /usr/local/bin or some other directory in your $PATH.
http://github.com/yuvi/gas-preprocessor/ - Get the latest FFmpeg from SVN (minimum r20151).
- Configure FFmpeg with one of the following commands. These give a
clean build with a default installation of iPhone SDK 3.1 on OSX Leopard.
Other versions may vary. - For iPhone 3GS or iPod Touch 3G 32GB/64GB, use this command:
How to handle auto rotation in UITabBarViewController based application
For TabView based application, there is many case that some of the view can be in landscape mode while other can't. In some cases, it is even complicated that one of the view in tab bar is navigation based and the view can only be in landscape mode after it is pushed to some view.
To handle this, it is very simple. Subclass you UITabBarViewController and overload this function:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return [self.selectedViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
Create waiting animated gif
If you want to generate animated gif to represent loading status, you can check this web site:
choose some options like colors and it will create an customized animated gif for you.
play URL audio using AVAudioPlayer
AVAudioPlayer is used to play audio file in iPhone. However, according to the document, it only support playing local audio file:
http://developer.apple.com/iphone/library/qa/qa2009/qa1634.html
To solve this problem, we can create a NSData using the NSURL and play the data using AVAudioPlayer
NSData *soundData = [NSData dataWithContentsOfURL:url];
AVAudioPlayer *avPlayer = [[AVAudioPlayer alloc] initWithData:soundData error: nil];
[avPlayer play];
How to take high contrast Black and White picture using Joy Camera
If you like black and white picture, you will find Joy Camera is a very interesting app that you can adjust so many parameters to make a perfect black and white picture that you love. This instruction will guide you how to set up Joy Camera to take high contrast black and white picture.

Recent comments
1 week 2 days ago
1 week 2 days ago
1 week 4 days ago
3 weeks 2 days ago
3 weeks 3 days ago
3 weeks 4 days ago
3 weeks 4 days ago
3 weeks 5 days ago
4 weeks 11 hours ago
4 weeks 1 day ago