Hi,
I’m not using the SDK to make games with jme thus I find no tutorials nor examples of code to use.
So I create after much work, a simple android activity extending AndroidHarness.
Sadly it can’t run.
All it does is print this message:
[2012-02-15 22:21:19 - AndroidDash] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.xmlpull.v1.builder.impl.XmlElementImpl$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
Until it has run out of heap space and eclipse crash.
Quite useless application I must say.
My code was this:
[java]package andrew.planetdash;
import android.os.Bundle;
import com.jme3.app.AndroidHarness;
public class AndroidDashActivity extends AndroidHarness {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
System.out.println("Done");
}
}[/java]
But that just printed the message and then eclipse crashed.
So I thought I might remove the super constructor as it might start some process in AndroidHarness.
So I deleted it and here is my current code:
[java]package andrew.planetdash;
import android.os.Bundle;
import com.jme3.app.AndroidHarness;
public class AndroidDashActivity extends AndroidHarness {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
System.out.println("Done");
}
}[/java]
This code will never reach the println line. Why?
Also are there any examples of creating a simple application in android WITHOUT using the sdk? It's a serious drawback if it does not exsist. Maybe I can write one if I manage to fix this..