Archive | May 2010

Pac-Man 30th Anniversary Doodle

Pinky plush toy, the Pac-Man board game, and the game running on an iPad

By far the coolest project I’ve worked on. It’s no longer on the homepage, but you can still play at http://www.google.com/pacman
Marcin also has some more photos here
http://www.flickr.com/photos/mwichary/sets/72157624107121334/

Advertisements

Android Emulator with Market App

UPDATE: See the new version at https://khom.wordpress.com/2013/06/16/android-emulator-with-google-play-store/

Download Android SDK

  1. Go to http://developer.android.com/sdk/index.html
  2. Download the SDK for your platform
  3. Unzip the files

Create an Android Virtual Device (AVD)

  1. To launch the Android SDK and AVD Manager on Windows, execute SDK Setup.exe, at the root of the SDK directory. On Mac OS X or Linux, execute the android tool in the <sdk>/tools/ folder.
  2. Under “Installed Packages” click [Update All…]
  3. Read 😉 and accept all end user license agreements
  4. Click [Install]
  5. Switch to the “Virtual Devices” page
  6. Click [New…]
  7. Enter a name (i.e. MyPhone)
  8. Target: Android 1.6 -API Level 4
  9. SD Card Size 96 MiB (or more if you want)
  10. Click [Create AVD]

Install HTC System Image

This step will add the Market app to your AVD.

  1. Go to http://developer.htc.com/adp.html#s3
  2. Download signed-dream_devphone_userdebug-img-14721.zip in the Android 1.6 section
  3. Unzip the file and copy system.img to the AVD folder. To locate the AVD path, select your AVD in Android SDK and AVD Manager and click [Details…]. On Mac OS X or Linux the AVD should be at ~/.android/avd/MyPhone.avd/ where MyPhone is the phone name you chose when you created the AVD.
  4. Select your AVD in Android SDK and AVD Manager and click [Start…]
  5. Use the default settings
  6. On the first boot, the tutorial asks you to slide out the keyboard. Do this using Ctrl-F11 or Ctrl-F12 (see the Keyboard Mappings section below).
  7. If your AVD does not have an internet connection when it boots (sometimes it takes a while) try restarting the emulator.

Keyboard Mappings

<sdk>/tools/emulator -help-keys

HOME Home button
F2, PAGEUP Menu (Soft-Left) button
Shift-F2, PAGEDOWN Star (Soft-Right) button
ESCAPE Back button
F3 Call/Dial button
F4 Hangup/EndCall button
F7 Power button
F5 Search button
KEYPAD_PLUS, Ctrl-F5 Volume up button
KEYPAD_MINUS, Ctrl-F6 Volume down button
Ctrl-KEYPAD_5, Ctrl-F3 Camera button
KEYPAD_7, Ctrl-F11 switch to previous layout
KEYPAD_9, Ctrl-F12 switch to next layout
F8 toggle cell network on/off
F9 toggle code profiling
Alt-ENTER toggle fullscreen mode
F6 toggle trackball mode
DELETE show trackball
KEYPAD_5 DPad center
KEYPAD_4 DPad left
KEYPAD_6 DPad right
KEYPAD_8 DPad up
KEYPAD_2 DPad down
KEYPAD_MULTIPLY increase onion alpha
KEYPAD_DIVIDE decrease onion alpha