Getting Started on Android
This section will explain how to get started with junaio Plugin on Android and to build and test the template project.
Prerequisites
The following are prerequisites before starting development with the plugin:
- Eclipse IDE for Java Developers (or compatible IDE)
- Android ADT plugin for Eclipse
- Android SDK Tools with platform Android 3.0 (API 11)
- An Android device (the Android Emulator cannot be used) with:
- at least Android 2.1-update1
- ARMv7 supported processor
The detailed instructions to install Android SDK are given at Android developer’s page:
http://developer.android.com/sdk/installing.html
Importing junaio plugin projects
Once the Android development environment is set, first step is to import existing junaio plugin projects into your workspace. The following steps are for Eclipse IDE only, if you are using another IDE, please refer to its documentation on how to import or use existing Android projects.
There are two projects included in the package, i.e.
JunaioPluginLib and
JunaioPluginTemplate . You need to import both projects into your workspace. Note: the project and the library have to be in the same workspace. The following steps should be repeated for both projects.
1. Open Eclipse and go to
File->Import
2. Select “
Existing Projects into Workspace” and click
Next
3. Click
Browse and select root directory of the junaioPluginLib project
4. Click
Finish, the project should appear on Package Explorer on the left side of your workspace
Repeat above steps with
junaioPluginTemplate project
Building the junaioPluginTemplate project
Click
Project->Build Project (or your favorite short cut) to build the application. In case of any errors, please see FAQs on
How to resolve build errors on Eclipse?.
Running the junaioPluginTemplate application
Click on the
run button (or
CTRL+F11) to launch the application. The application by default will load “junaio Glue Demo” channel. A character (metaioman) will appear on top of the following pattern if the channel is successfully loaded.