title: What are the steps in converting a Desktop application in libgdx to android?
body: <p>I have a fully functioning java application built with the libgdx framework that deploys on the desktop. However, I would like to take the code and create and Android app from it. </p>
  
  <p>I have created the Android Project, rerouted code to the source folder of the Android Project, added an Android Specific Main Method, and edited manifest xml file to use the main activity - in this case "RoadRusherActivity". However, I run into the following error:</p>
  
  <pre><code>04-28 15:44:41.195: E/Trace(2452): error opening trace file: No such file or directory (2)
  04-28 15:44:41.355: D/dalvikvm(2452): Trying to load lib /data/app-lib/com.me.mygdxgame-2/libgdx.so 0x40ce58c8
  04-28 15:44:41.385: D/dalvikvm(2452): Added shared lib /data/app-lib/com.me.mygdxgame-2/libgdx.so 0x40ce58c8
  04-28 15:44:41.415: D/dalvikvm(2452): No JNI_OnLoad found in /data/app-lib/com.me.mygdxgame-2/libgdx.so 0x40ce58c8, skipping init
  04-28 15:44:41.465: D/libEGL(2452): Emulator without GPU support detected. Fallback to software renderer.
  04-28 15:44:41.485: D/libEGL(2452): loaded /system/lib/egl/libGLES_android.so
  04-28 15:44:41.675: D/AndroidRuntime(2452): Shutting down VM
  04-28 15:44:41.675: W/dalvikvm(2452): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
  04-28 15:44:41.685: E/AndroidRuntime(2452): FATAL EXCEPTION: main
  04-28 15:44:41.685: E/AndroidRuntime(2452): java.lang.RuntimeException: Unable to resume activity {com.me.mygdxgame/com.me.mygdxgame.RoadRusherActivity}: java.lang.SecurityException: Neither user 10048 nor current process has android.permission.WAKE_LOCK.
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2742)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2771)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2235)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.os.Handler.dispatchMessage(Handler.java:99)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.os.Looper.loop(Looper.java:137)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.ActivityThread.main(ActivityThread.java:5041)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at java.lang.reflect.Method.invokeNative(Native Method)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at java.lang.reflect.Method.invoke(Method.java:511)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at dalvik.system.NativeStart.main(Native Method)
  04-28 15:44:41.685: E/AndroidRuntime(2452): Caused by: java.lang.SecurityException: Neither user 10048 nor current process has android.permission.WAKE_LOCK.
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.os.Parcel.readException(Parcel.java:1425)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.os.Parcel.readException(Parcel.java:1379)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:271)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.os.PowerManager$WakeLock.acquireLocked(PowerManager.java:717)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.os.PowerManager$WakeLock.acquire(PowerManager.java:686)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at com.badlogic.gdx.backends.android.AndroidApplication.onResume(AndroidApplication.java:241)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1185)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.Activity.performResume(Activity.java:5182)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2732)
  04-28 15:44:41.685: E/AndroidRuntime(2452):     ... 12 more
  04-28 15:44:47.705: I/Process(2452): Sending signal. PID: 2452 SIG: 9
  </code></pre>
  
  <p>The following is my manifest:  </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.me.mygdxgame"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="17" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".RoadRusherActivity"
              android:configChanges="orientation|keyboardHidden|screenSize"
              android:label="@string/app_name"
              android:screenOrientation="landscape"
              android:theme="@style/FullscreenTheme" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>The following is my main activity class titled "RoadRusherActivity".</p>
  
  <pre><code>package com.me.mygdxgame;
  import android.os.Bundle;
  import com.badlogic.gdx.backends.android.AndroidApplication;
  import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
  public class RoadRusherActivity extends AndroidApplication {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
      config.useAccelerometer = false;
      config.useCompass = false;
      config.useWakelock = true;
      config.useGL20 = true;
      initialize(new SimpleBike(), config);
  }
  }
  </code></pre>
  
  <p>I am just confused as how to approach, porting to Android. Any and all suggestions would be greatly appreciated!</p>