Phone: LG P920 Optimus 3D
Android Version : 2.2
Hi,
I begin “Hello Assets” turorial , after resolve this issue :
http://hub.jmonkeyengine.org/groups/android/forum/topic/android-2-2-textured-box-throwing-nosuchmethoderror/
I’ve a new error message box : xlifMyGame doesn’t answer
When I launch the application, I have a black screen during near of 5mn then I have the message box (with the choice close or wait). If I choose “wait” and I see my teapot and my wall.
package mygame;
import com.jme3.app.SimpleApplication;
import com.jme3.font.BitmapText;
import com.jme3.light.DirectionalLight;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.Spatial;
import com.jme3.scene.shape.Box;
import com.jme3.math.ColorRGBA;
/** Sample 3 - how to load an OBJ model, and OgreXML model,
- a material/texture, or text. */
public class Main extends SimpleApplication {
public static void main(String[] args) {
Main app = new Main();
app.start();
}
@Override
public void simpleInitApp() {
Spatial teapot = assetManager.loadModel(“Models/Teapot/Teapot.obj”);
Material mat_default = new Material(
assetManager, “Common/MatDefs/Misc/ShowNormals.j3md”);
teapot.setMaterial(mat_default);
rootNode.attachChild(teapot);
// Create a wall with a simple texture from test_data
Box box = new Box(Vector3f.ZERO, 2.5f,2.5f,1.0f);
Spatial wall = new Geometry(“Box”, box );
Material mat_brick = new Material(
assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
mat_brick.setTexture(“ColorMap”,
assetManager.loadTexture(“Textures/Terrain/BrickWall/BrickWall.jpg”));
//mat_brick.setColor(“Color”, ColorRGBA.Blue);
wall.setMaterial(mat_brick);
wall.setLocalTranslation(2.0f,-2.5f,0.0f);
rootNode.attachChild(wall);
// Display a line of text with a default font
guiNode.detachAllChildren();
guiFont = assetManager.loadFont(“Interface/Fonts/Default.fnt”);
BitmapText helloText = new BitmapText(guiFont, false);
helloText.setSize(guiFont.getCharSet().getRenderedSize());
helloText.setText(“Hello World”);
helloText.setLocalTranslation(300, helloText.getLineHeight(), 0);
guiNode.attachChild(helloText);
//etc…
I think it’s again a buffer problem. My CPU works to the maximum of those possibilities.
Could you please, help me?
I can see some error message on my computer:
D/dalvikvm( 6607): GC_FOR_MALLOC freed 7501 objects / 396128 bytes in 42ms
D/dalvikvm( 6607): GC_FOR_MALLOC freed 528 objects / 236976 bytes in 39ms
W/System.err( 491): at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method)
W/System.err( 491): at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:132)
W/System.err( 491): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:246)
W/System.err( 491): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533)
W/System.err( 491): at java.net.Socket.connect(Socket.java:1055)
W/System.err( 491): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.(HttpConnection.java:62)
W/System.err( 491): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:88)
W/System.err( 491): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConnectionImpl.java:927)
W/System.err( 491): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:909)
W/System.err( 491): at com.netqin.antivirus.cloud.model.http.HttpUtil.doPost(HttpUtil.java:99)
W/System.err( 491): at com.netqin.antivirus.cloud.model.http.HttpUtil.getConnectionWithPost(HttpUtil.java:220)
W/System.err( 491): at com.netqin.antivirus.cloud.model.http.HttpHandler.conn(HttpHandler.java:52)
W/System.err( 491): at com.netqin.antivirus.cloud.model.http.HttpHandler.run(HttpHandler.java:104)
W/System.err( 491): at java.lang.Thread.run(Thread.java:1096)
D/GsmDataConnectionTracker( 278): [GsmDataConnectionTracker] rx 18528, tx 12384
D/GsmDataConnectionTracker( 278): Fast dormancy check PDP num =1
D/GsmDataConnectionTracker( 278): 2g screen on) Set Timer to 1000
Thanks in advance
Best regards
François