Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Titanium has recently released a tool called Fastdev, which streamlines testing in the Android emulator (and eventually the iOS simulator as well). http://wiki.appcelerator.org/display/guides/Fastdev+Reference+for+Android

Fastdev launches a server to serve your javascript assets to the emulator, rather than packaging them all and deploying them directly to the emulator. As you edit your Javascript, the emulator app reflects your changes immediately. However, most often, you'll need to restart the app in the emulator to see changes take effect. This is much quicker than re-compiling the app entirely though. Here's how to launch Fastdev from command line

  1. cd ~/ProjectRoot (Contains Resources, build, etc)
  2. titanium fastdev start (Make sure titanium is set up as an alias on your machine: http://developer.appcelerator.com/doc/mobile/android/module_sdk)
  3. In a new shell window: titanium run --platform=android

Application should start in emulator. If an emulator doesn't appear, start the Fastdev server (step 2), and then launch the app from Titanium Developer (it will still use the Fastdev server).

When you've made changes to your app and want to see them in the emulator, just type the command: titanium fastdev restart-app which will quickly exit and reopen your app, using files served from the Fastdev server.

Android Testing Tools

DDMS

...