Running on Android

Appportunity

Build your own Android App Dev Empire

Get Instant Access

You can build for the Android on Mac, Windows or Linux. For details on setting up the Android development environment, including building for a device, see chapter 3. Note that you will need the Android Native development environment (NDK), as well as the SDK and related components, but you will not need Eclipse. After the initial setup, building for the Android and testing in the simulator is the same as building for the iPhone, except that the rake tasks have "android" instead of "iphone" in the name and the log files are found in different places.

In your application directory, on the command line, enter: "rake run:android". You will see a lot of text output and it will take several minutes before the Android emulator launches. When the emulator appears, you won't see your application. You need to select the menu tab on the bottom of the screen to reveal all applications and you will likely need to scroll to the bottom of that screen (Figure 6-3).

$ cd inventory/ $ rake run:android

$ cd inventory/ $ rake run:android

Figure 6-3. Running on Android f 1

Figure 6-3. Running on Android

Was this article helpful?

0 0
Living With Android

Living With Android

Get All The Support And Guidance You Need To Finally Be A Success At Using Android. This Book Is One Of The Most Valuable Resources In The World When It Comes To Playing With the Hottest Android Tablet.

Get My Free Ebook


Post a comment