Game Development Reference
In-Depth Information
Now, let's try to run the application on a real, physical device. First, make sure that
your Android device is connected via a USB cable and is set up for development. To
set up your Android device, follow the instructions at
http://developer.android.
Now, right-click on the
demo-android
project in
Project Explorer
in Eclipse and
select the
Android Application
option from the
Run As
menu.
The Android application should now be installed and be happily running on your
Android device. The following image is of the application running on an HTC
Desire HD:
With regards to the Android emulator that comes with the Android SDK, just a few
final words, do not use it!
Emulators cannot accurately reflect how a device responds, so instead of using
an emulator, it is highly recommended to try and test your applications on as
many real devices as you can get your hands on.
Running the demo application in a
WebGL-capable web browser
The starter class for the WebGL application is called
GwtLauncher.java
.
The following listing is
GwtLauncher.java
from
demo-html
:
package com.packtpub.libgdx.demo.client;
import com.packtpub.libgdx.demo.MyDemo;