Open the application project in the Eclipse IDE for the Android platform.
-
Import your project in Eclipse.
-
In the Eclipse IDE, select >> .
-
Select Import source Android/Existing Android Code Into Workspace.
-
Browse and find the GWC hybrid mode application.
-
Click Finish.
-
Launch the application in an emulator.
-
Folow the steps included in the chapter Running on a device on the Android Developer web
portal, at http://developer.android.com/tools/building/building-eclipse.html
-
Click the Build button.
-
For the application type, select Android Application.
If there is an existing AVD configured into the Android Virtual Devices Manager, it will load
the application.
-
Modify the main class to run the application on the USB-connected device or the emulator with
or without a settings pane.
-
Launch the application in a connected device.
-
Folow the steps included in the chapter Running on a device on the Android Developer web
portal, at http://developer.android.com/tools/building/building-eclipse.html
-
Add the android:debuggable tag in the application element of
the AndroidManifest.xml file.
<application
android:debuggable="true"
android:icon="@drawable/ic_hybrid_genero_app"
android:label="@string/app_name" >
-
Plug in your USB device.
If there is an existing AVD configured into the Android Virtual Devices Manager, it will load
the application.
-
Compile.
Compilation is performed by ANT and launched by the Eclipse IDE.
-
Open the Eclipse IDE.
-
Select the project folder.
-
Click the Build button.
-
For the application type, select Android Application.
Eclipse will choose the first AVD in the list and launch the emulator with the AVD configuration.
For more details, visit http://developer.android.com/tools/building/index.html