Blogs

Android Google Maps Street View 使用方法

(Chinese Only)
以下是如何在 Android Google Maps 觀看 Street View 的方法:

1. 開啟 Google Maps

CAP201003111112.png

iPhone Google Maps Street View 使用方法

(Chinese Only)

終於 Google Maps Street View 可以在香港區使用了,以下是如何在 iPhone 內建的 Google Maps 使用 Street View,注意 iPhone OS 的版本至少是 2.2:

1. 開啟 Google Maps 後按右下方叫出選單。

IMG_0046.PNG

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)

IMG_0023.JPG

iWalk/iUP 外置電(尿袋)使用報告

(Chinese only)
經網友推介這隻 iWalk 5400 外置尿袋,小弟亦在淘寶買了個回來玩玩。順道買了另一個 iUP 1800 尿袋。

IMG_0006.JPG

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

  1. Download and install the iPhone SDK 3.1.
  2. 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/
  3. Get the latest FFmpeg from SVN (minimum r20151).
  4. 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.
  5. 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:

http://ajaxload.info/

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.

Syndicate content