Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Android Debug  (Read 1759 times)

0 Members and 1 Guest are viewing this topic.

blumial

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • View Profile
Android Debug
« on: July 26, 2014, 05:33:18 PM »

Hi;

I have a problem with debug with Eclipse.
I haven't error, but the simulator stops at writing Android. Sdla activity Manifest:

<?xml version="1.0" encoding="utf-8"?>
<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
     com.gamemaker.game
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="SDLActivity.java"
      android:versionCode="1"
      android:versionName="1.0"
      android:installLocation="auto">

    <!-- Create a Java class extending SDLActivity and place it in a
         directory under src matching the package, e.g.
            src/com/gamemaker/game/MyGame.java

         then replace "SDLActivity" with the name of your class (e.g. "MyGame")
         in the XML below.

         An example Java class can be found in README.android
    -->
    <application android:label="@string/app_name"
                 android:icon="@drawable/ic_launcher"
                 android:allowBackup="true"
                 android:debuggable="true"
                 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
       android:hardwareAccelerated="true">
        <activity android:name="YourGameName"
        android:screenOrientation="landscape"
        android:configChanges="keyboardHidden|orientation"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

    <!-- Android 2.3.3 -->
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="12" />

    <!-- OpenGL ES 2.0 -->
    <uses-feature android:glEsVersion="0x00020000" />

    <!-- Allow writing to external storage -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>


Is there something wrong?

Many thanks

Michel


Logged

blumial

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • View Profile
Re: Android Debug
« Reply #1 on: July 26, 2014, 08:12:36 PM »

Hi, Now the simulator running but I have this error:

[2014-07-26 21:10:25 - SDLActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.libsdl.app/.SDLActivity }
[2014-07-26 21:10:26 - SDLActivity] Attempting to connect debugger to 'org.libsdl.app' on port 8647

Many thanks

Michel
Logged

HCDaniel

  • Regular poster
  • ***
  • Karma: 8
  • Offline Offline
  • Posts: 164
    • View Profile
Re: Android Debug
« Reply #2 on: July 27, 2014, 10:44:00 AM »

Hi,

your manifest doesn't look good. I added an example to the guide here:

http://res.dead-code.org/doku.php/wmelite:building

Make sure that the "package" line reflects the path to your main Java file and the "<activity android:name" line is the name of your Java file (without extension).

Regards,

Daniel
Logged
 

Page created in 0.153 seconds with 23 queries.