Wednesday, January 2, 2013
How to Build an Android App With Ruby
1. Navigate in your Web browser to the official Android Developers website (link in Resources) to download the Android NDK.
2. Click 'android-ndk-r7-windows.zip' and save the file to a new folder on your computer.
3. Right-click on the “android-ndk-r7-windows.zip” archive and select 'Extract here' to extract its contents to the current folder.
4. Go to the 'Start' menu, type 'cmd' in the Run box and press 'Enter' to launch the command prompt.
5. Type 'setx ANDROID_NDK_ROOT c:\android-ndk-r6' at the command prompt and press 'Enter' to set the environment variable. Replace 'c:\android-ndk-r6' with the path to the folder in which you extracted the Android NDK.
6. Navigate to the Oracle Java website (link in Resources) to download the Java JDK.
7. Click 'Download' and then click 'jdk-7u2-windows-i586.exe.' Save the executable to your desktop.
8. Double-click on the “jdk-7u2-windows-i586.exe” file and follow the simple instructions displayed on your screen to install the JDK.
9. Navigate to the official Android Developers website (see Resources) to download the Android SDK package.
10. Click on the 'installer_r16-windows.exe' file and save it to your desktop.
11. Double-click on the “installer_r16-windows.exe” file and follow the simple on-screen instructions to install the Android SDK on your machine.
12. Type 'setx ANDROID_SDK_TOOLS c:\android\android-sdk\tools' at the command prompt and press 'Enter' to set the environment variable. Replace 'c:\android\android-sdk\tools' with the path to the folder in which you extracted the Android SDK.
13. Navigate to the Apache Ant Project website (see Resources) to download Ant.
14. Click on the 'apache-ant-1.8.2-bin.zip' file and save the file to your desktop.
15. Right-click on the 'apache-ant-1.8.2-bin.zip' archive and select 'Extract here.'
16. Type 'setx ANT_HOME c:\apache-ant-1.8.2' at the command prompt and press 'Enter' to set the environment variable. Replace 'c:\apache-ant-1.8.2' with the path to the folder in which you extracted Ant.
17. Navigate to the JRuby Downloads page (link in Resources) and click on the 'JRuby 1.6.6 Windows Executable' link. Save the file to your computer.
18. Double-click on the 'jruby_windows_1_6_6.exe file' and follow the on-screen directions to install JRuby.
19. Reboot your computer.
20. Open the command prompt again, type 'gem install ruboto' and press 'Enter' to install Ruboto.
21. Type the following at the command prompt:ruboto gen app --package YourFirstAndroidApp --path AppFolder --name YourApp --target android-8 --activity YourAppReplace 'YourFirstAndroidApp' with a package name, 'AppFolder' with a folder name and 'YourApp' with the name of your app. Press 'Enter' to create a new Android project using Ruby.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment