Nifty on Android

Back again…



I can’t still make my app run because of the touch… when I touch the screen (whatever if it’s on a button or not) the app crashes with the error:


java.lang.NoSuchMethodError: de.lessvoid.nifty.NiftyInputConsumer.processMouseEvent


And here is the log:

05-24 10:21:28.720: INFO/MusicStatusBarControl(1103): === Action INFO :android.intent.action.CONFIGURATION_CHANGED
05-24 10:21:28.720: DEBUG/StatusBarPolicy(1103): time tick
05-24 10:21:28.730: INFO/MainActivity(1699): CHECK: settings setup... DONE
05-24 10:21:28.740: INFO/JmeSystem(1699): Running on jMonkey Engine 3 ALPHA 0.50 Android
05-24 10:21:28.740: INFO/MainActivity(1699): CHECK: application start... DONE
05-24 10:21:28.740: INFO/MainActivity(1699): CHECK: context creation... DONE
05-24 10:21:28.750: INFO/MainActivity(1699): CHECK: view creation... DONE
05-24 10:21:28.750: INFO/MainActivity(1699): CHECK: view start... DONE
05-24 10:21:28.750: INFO/MainActivity(1699): CHECK: start... DONE
05-24 10:21:28.750: INFO/MainActivity(1699): CHECK: resume... DONE
05-24 10:21:28.790: INFO/ActivityManager(1103): Displayed activity com.lesmobilizers.tehmoballizer.general/.MainActivity: 334 ms (total 334 ms)
05-24 10:21:28.790: INFO/#LGIME(1289): #### onStartInput restarting : false / inputType : 0
05-24 10:21:28.790: WARN/IInputConnectionWrapper(1296): showStatusIcon on inactive InputConnection
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): disconnect(111168) from pid 1289
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): Client(111168) destructor pid = 1289
05-24 10:21:28.790: VERBOSE/AudioSink(1020): close
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): disconnect(111168) from pid 1289
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): Client(111169) constructor
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): Create new client(111169) from pid 1289, fd=65, offset=810706, length=4650
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): setDataSource fd=65, offset=810706, length=4650
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): st_dev = 45825
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): st_mode = 33188
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): st_uid = 0
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): st_gid = 0
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): st_size = 2829838
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): player type = 3
05-24 10:21:28.790: VERBOSE/MediaPlayerService(1020): create VorbisPlayer
05-24 10:21:28.810: VERBOSE/MediaPlayerService(1020): [111169] setAudioStreamType(3)
05-24 10:21:28.810: VERBOSE/MediaPlayerService(1020): [111169] prepareAsync
05-24 10:21:28.810: VERBOSE/MediaPlayerService(1020): [111169] notify (0x1cf58, 1, 0, 0)
05-24 10:21:28.810: DEBUG/StatusBarPolicy(1103): handle message
05-24 10:21:28.830: DEBUG/libEGL(1699): loaded /system/lib/egl/libGLES_android.so
05-24 10:21:28.830: DEBUG/libEGL(1699): loaded /system/lib/egl/libEGL_tegra.so
05-24 10:21:28.840: DEBUG/libEGL(1699): loaded /system/lib/egl/libGLESv1_CM_tegra.so
05-24 10:21:28.850: DEBUG/libEGL(1699): loaded /system/lib/egl/libGLESv2_tegra.so
05-24 10:21:28.860: INFO/OGLESContext(1699): GL Surface created
05-24 10:21:28.860: INFO/OGLESContext(1699): OGLESContext create
05-24 10:21:28.880: WARN/NvAudioDevice(1020): @@(Device.cpp-hal)@@ setOutputMute(mute=1)
05-24 10:21:28.890: DEBUG/dalvikvm(1699): GC_EXTERNAL_ALLOC freed 2473 objects / 155376 bytes in 31ms
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): use_VBO [false] -> [false]
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): verboseLogging [false] -> [false]
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Vendor: NVIDIA Corporation
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Renderer: NVIDIA Tegra
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Version: OpenGL ES 2.0
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): GLES20.Shading Language Version: OpenGL ES GLSL 1.00
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): VTF Units: 0
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Texture Units: 16
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Vertex Attributes: 16
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Subpixel Bits: 4
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Maximum Texture Resolution: 2048
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Maximum CubeMap Resolution: 2048
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): GL_EXTENSIONS: GL_NV_platform_binary GL_OES_rgb8_rgba8 GL_OES_fbo_render_mipmap GL_NV_depth_nonlinear GL_NV_draw_path GL_OES_EGL_image GL_OES_vertex_half_float GL_NV_framebuffer_vertex_attrib_array GL_NV_coverage_sample GL_OES_mapbuffer GL_ARB_draw_buffers GL_EXT_Cg_shader GL_EXT_packed_float GL_OES_texture_half_float GL_OES_texture_float GL_EXT_texture_array GL_OES_compressed_ETC1_RGB8_texture GL_EXT_texture_compression_latc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_NV_get_tex_image GL_NV_read_buffer GL_NV_shader_framebuffer_fetch GL_NV_fbo_color_attachments GL_EXT_bgra GL_EXT_texture_format_BGRA8888 GL_EXT_unpack_subimage
05-24 10:21:28.900: INFO/OGLESShaderRenderer(1699): Caps: [GLSL100]
05-24 10:21:28.900: INFO/JmeSystem(1699): newAssetManager(null)
05-24 10:21:28.900: INFO/AssetManager(1699): DesktopAssetManager created.
05-24 10:21:28.910: INFO/AndroidAssetManager(1699): AndroidAssetManager created.
05-24 10:21:28.910: INFO/Camera(1699): 24 May 2011 10:21:28 com.jme3.renderer.Camera
05-24 10:21:28.910: INFO/Camera(1699): INFO: Camera created (W: 640, H: 480)
05-24 10:21:28.920: INFO/Camera(1699): 24 May 2011 10:21:28 com.jme3.renderer.Camera
05-24 10:21:28.920: INFO/Camera(1699): INFO: Camera created (W: 640, H: 480)
05-24 10:21:28.930: INFO/MaterialDef(1699): 24 May 2011 10:21:28 com.jme3.material.MaterialDef
05-24 10:21:28.930: INFO/MaterialDef(1699): INFO: Loaded material definition: Unshaded
05-24 10:21:28.970: VERBOSE/OMXPlayer(1020): waiting to render 0x43ca00
05-24 10:21:28.990: INFO/dalvikvm(1699): Could not find method java.util.Arrays.copyOf, referenced from method com.jme3.font.BitmapFont.merge
05-24 10:21:28.990: WARN/dalvikvm(1699): VFY: unable to resolve static method 18001: Ljava/util/Arrays;.copyOf ([Ljava/lang/Object;I)[Ljava/lang/Object;
05-24 10:21:28.990: DEBUG/dalvikvm(1699): VFY: replacing opcode 0x71 at 0x0011
05-24 10:21:28.990: DEBUG/dalvikvm(1699): VFY: dead code 0x0014-0021 in Lcom/jme3/font/BitmapFont;.merge (Lcom/jme3/font/BitmapFont;)V
05-24 10:21:28.990: INFO/global(1699): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
05-24 10:21:29.000: VERBOSE/OMXPlayer(1020): waiting to render 0x2d3bb0
05-24 10:21:29.030: VERBOSE/OMXPlayer(1020): waiting to render 0x3e2388
05-24 10:21:29.050: VERBOSE/OMXPlayer(1020): waiting to render 0x268720
05-24 10:21:29.080: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 7136 objects / 329056 bytes in 24ms
05-24 10:21:29.100: VERBOSE/OMXPlayer(1020): waiting to render 0x60a888
05-24 10:21:29.110: INFO/com.jme3.scene.Node(1699): 24 May 2011 10:21:29 com.jme3.scene.Node attachChild
05-24 10:21:29.110: INFO/com.jme3.scene.Node(1699): INFO: Child (BitmapFont) attached to this node (null)
05-24 10:21:29.120: INFO/com.jme3.scene.Node(1699): 24 May 2011 10:21:29 com.jme3.scene.Node attachChild
05-24 10:21:29.120: INFO/com.jme3.scene.Node(1699): INFO: Child (null) attached to this node (Gui Node)
05-24 10:21:29.120: INFO/MaterialDef(1699): 24 May 2011 10:21:29 com.jme3.material.MaterialDef
05-24 10:21:29.120: INFO/MaterialDef(1699): INFO: Loaded material definition: Default GUI
05-24 10:21:29.130: VERBOSE/OMXPlayer(1020): waiting to render 0x67dc88
05-24 10:21:29.140: INFO/dalvikvm(1699): Could not find method de.lessvoid.nifty.NiftyInputConsumer.processMouseEvent, referenced from method com.jme3.niftygui.InputSystemJme.onMouseButtonEventQueued
05-24 10:21:29.140: WARN/dalvikvm(1699): VFY: unable to resolve interface method 13065: Lde/lessvoid/nifty/NiftyInputConsumer;.processMouseEvent (IIIIZ)Z
05-24 10:21:29.140: DEBUG/dalvikvm(1699): VFY: replacing opcode 0x78 at 0x0016
05-24 10:21:29.140: DEBUG/dalvikvm(1699): VFY: dead code 0x0019-001f in Lcom/jme3/niftygui/InputSystemJme;.onMouseButtonEventQueued (Lcom/jme3/input/event/MouseButtonEvent;Lde/lessvoid/nifty/NiftyInputConsumer;)V
05-24 10:21:29.140: INFO/dalvikvm(1699): Could not find method de.lessvoid.nifty.NiftyInputConsumer.processMouseEvent, referenced from method com.jme3.niftygui.InputSystemJme.onMouseMotionEventQueued
05-24 10:21:29.140: WARN/dalvikvm(1699): VFY: unable to resolve interface method 13065: Lde/lessvoid/nifty/NiftyInputConsumer;.processMouseEvent (IIIIZ)Z
05-24 10:21:29.140: DEBUG/dalvikvm(1699): VFY: replacing opcode 0x78 at 0x001c
05-24 10:21:29.140: DEBUG/dalvikvm(1699): VFY: dead code 0x001f-001f in Lcom/jme3/niftygui/InputSystemJme;.onMouseMotionEventQueued (Lcom/jme3/input/event/MouseMotionEvent;Lde/lessvoid/nifty/NiftyInputConsumer;)V
05-24 10:21:29.140: INFO/Screen(1699): Missing ScreenController for screen [null] using DefaultScreenController() instead but this might not be what you want.
05-24 10:21:29.150: WARN/AndroidLocator(1699): 24 May 2011 10:21:29 com.jme3.asset.plugins.AndroidLocator locate
05-24 10:21:29.150: WARN/AndroidLocator(1699): WARNING: Failed to locate nifty.nxs
05-24 10:21:29.190: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 6617 objects / 394456 bytes in 24ms
05-24 10:21:29.220: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 848 objects / 107792 bytes in 23ms
05-24 10:21:29.220: INFO/dalvikvm-heap(1699): Grow heap (frag case) to 3.482MB for 95642-byte allocation
05-24 10:21:29.250: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 21 objects / 968 bytes in 32ms
05-24 10:21:29.290: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 24 objects / 184712 bytes in 32ms
05-24 10:21:29.310: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 81 objects / 177296 bytes in 23ms
05-24 10:21:29.400: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 2069 objects / 218424 bytes in 25ms
05-24 10:21:29.470: INFO/global(1699): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-24 10:21:29.530: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 4911 objects / 396512 bytes in 28ms
05-24 10:21:29.550: WARN/AndroidLocator(1699): 24 May 2011 10:21:29 com.jme3.asset.plugins.AndroidLocator locate
05-24 10:21:29.550: WARN/AndroidLocator(1699): WARNING: Failed to locate nifty-styles.nxs
05-24 10:21:29.600: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 4598 objects / 300744 bytes in 28ms
05-24 10:21:29.630: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 14587 objects / 909384 bytes in 27ms
05-24 10:21:29.650: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 14 objects / 152328 bytes in 23ms
05-24 10:21:29.730: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 1839 objects / 227008 bytes in 25ms
05-24 10:21:29.830: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 3076 objects / 230664 bytes in 27ms
05-24 10:21:29.840: INFO/global(1699): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-24 10:21:29.840: WARN/AndroidLocator(1699): 24 May 2011 10:21:29 com.jme3.asset.plugins.AndroidLocator locate
05-24 10:21:29.840: WARN/AndroidLocator(1699): WARNING: Failed to locate nifty.nxs
05-24 10:21:29.890: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 2949 objects / 343960 bytes in 28ms
05-24 10:21:29.930: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 70 objects / 308424 bytes in 28ms
05-24 10:21:29.960: VERBOSE/OMXPlayer(1020): waiting to render 0x49c7d0
05-24 10:21:30.020: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 2675 objects / 308672 bytes in 30ms
05-24 10:21:30.090: INFO/global(1699): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-24 10:21:30.110: WARN/AndroidLocator(1699): 24 May 2011 10:21:30 com.jme3.asset.plugins.AndroidLocator locate
05-24 10:21:30.110: WARN/AndroidLocator(1699): WARNING: Failed to locate nifty-controls.nxs
05-24 10:21:30.160: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 8099 objects / 502760 bytes in 34ms
05-24 10:21:30.200: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 29960 objects / 1747632 bytes in 29ms
05-24 10:21:30.230: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 15 objects / 168760 bytes in 23ms
05-24 10:21:30.310: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 2068 objects / 218312 bytes in 26ms
05-24 10:21:30.390: INFO/global(1699): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-24 10:21:30.420: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 4167 objects / 362520 bytes in 28ms
05-24 10:21:30.420: WARN/AndroidLocator(1699): 24 May 2011 10:21:30 com.jme3.asset.plugins.AndroidLocator locate
05-24 10:21:30.420: WARN/AndroidLocator(1699): WARNING: Failed to locate nifty.nxs
05-24 10:21:30.470: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 1622 objects / 204264 bytes in 28ms
05-24 10:21:30.500: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 57 objects / 348672 bytes in 28ms
05-24 10:21:30.610: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 3164 objects / 333264 bytes in 32ms
05-24 10:21:30.670: INFO/global(1699): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-24 10:21:30.690: INFO/de.lessvoid.nifty.Nifty(1699): loadFromFile [assets/Interface/Screens/screensmanager.xml]
05-24 10:21:30.690: WARN/AndroidLocator(1699): 24 May 2011 10:21:30 com.jme3.asset.plugins.AndroidLocator locate
05-24 10:21:30.690: WARN/AndroidLocator(1699): WARNING: Failed to locate assets/Interface/Screens/screensmanager.xml
05-24 10:21:30.730: WARN/WindowManager(1103): Window freeze timeout expired.
05-24 10:21:30.730: WARN/WindowManager(1103): Force clearing orientation change: Window{46fa34e0 com.lesmobilizers.tehmoballizer.general/com.lesmobilizers.tehmoballizer.general.MainActivity paused=false}
05-24 10:21:30.730: WARN/WindowManager(1103): Force clearing orientation change: Window{470171b8 SurfaceView paused=false}
05-24 10:21:30.750: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 8704 objects / 551696 bytes in 38ms
05-24 10:21:30.780: DEBUG/(1103): NvDispMgrEntry : Sending NvDispMgrCmd_DisplaySetAttrs from client
05-24 10:21:30.780: DEBUG/(1026): Dispmgr: begin[227] packet[8,2]: 00000006 DisplaySetAttrs
05-24 10:21:30.780: DEBUG/(1026): Command =00000006
05-24 10:21:30.780: DEBUG/(1026): ClientId=d00c4a0f
05-24 10:21:30.780: DEBUG/(1026): Out =48f6ab74
05-24 10:21:30.780: DEBUG/(1026): Id =00000002
05-24 10:21:30.780: DEBUG/(1026): Flags =00000000
05-24 10:21:30.780: DEBUG/(1026): buf[ 5]=00000001
05-24 10:21:30.780: DEBUG/(1026): buf[ 6]=0000b61d
05-24 10:21:30.780: DEBUG/(1026): buf[ 7]=0000005a
05-24 10:21:30.780: DEBUG/(1026): Dispmgr: end[227] packet[8,2]:
05-24 10:21:30.780: DEBUG/(1026): Error =00000000
05-24 10:21:30.780: DEBUG/(1026): SSeq =98765432
05-24 10:21:30.780: DEBUG/(1103): NvDispMgrEntry : Receiving NvDispMgrCmd_DisplaySetAttrs from client
05-24 10:21:30.800: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 29970 objects / 1750096 bytes in 31ms
05-24 10:21:30.820: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 15 objects / 168768 bytes in 24ms
05-24 10:21:30.910: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 2072 objects / 218896 bytes in 26ms
05-24 10:21:30.980: INFO/global(1699): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-24 10:21:30.980: INFO/NiftyLoader(1699): loading new nifty xml file with schemaId [nifty.nxs]
05-24 10:21:31.010: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 4174 objects / 362904 bytes in 29ms
05-24 10:21:31.080: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 7009 objects / 410200 bytes in 30ms
05-24 10:21:31.140: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 8506 objects / 484496 bytes in 30ms
05-24 10:21:31.200: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 8890 objects / 508096 bytes in 31ms
05-24 10:21:31.270: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 9472 objects / 524336 bytes in 31ms
05-24 10:21:31.290: INFO/NiftyLoader(1699): loaded nifty xml file with schemaId [nifty.nxs] took [307 ms]
05-24 10:21:31.290: INFO/NiftyType(1699): debug out [0]
05-24 10:21:31.290: INFO/NiftyType(1699): resourceBundles [0]
05-24 10:21:31.290: INFO/NiftyType(1699): registerStyle [0]
05-24 10:21:31.290: INFO/NiftyType(1699): registerControlDefinition [0]
05-24 10:21:31.290: INFO/NiftyType(1699): registerEffect [0]
05-24 10:21:31.290: INFO/NiftyType(1699): registerSound [0]
05-24 10:21:31.290: INFO/NiftyType(1699): registerMusic [0]
05-24 10:21:31.290: INFO/NiftyType(1699): registerMouseCursor [0]
05-24 10:21:31.290: INFO/NiftyType(1699): registerPopup [0]
05-24 10:21:31.300: INFO/NiftyLoader(1699): internal prepare screen (homescreen) [5]
05-24 10:21:31.360: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 9476 objects / 502072 bytes in 34ms
05-24 10:21:31.360: INFO/NiftyLoader(1699): internal create screen (homescreen) [55]
05-24 10:21:31.360: INFO/NiftyLoader(1699): internal prepare screen (quickgamescreen) [5]
05-24 10:21:31.380: INFO/NiftyLoader(1699): internal create screen (quickgamescreen) [19]
05-24 10:21:31.390: INFO/NiftyLoader(1699): internal prepare screen (solomodescreen) [6]
05-24 10:21:31.410: INFO/NiftyLoader(1699): internal create screen (solomodescreen) [18]
05-24 10:21:31.410: INFO/NiftyLoader(1699): internal prepare screen (settingsscreen) [5]
05-24 10:21:31.430: INFO/NiftyLoader(1699): internal create screen (settingsscreen) [19]
05-24 10:21:31.480: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 23669 objects / 1095120 bytes in 40ms
05-24 10:21:31.480: INFO/NiftyLoader(1699): internal prepare screen (creditsscreen) [45]
05-24 10:21:31.490: INFO/NiftyLoader(1699): internal create screen (creditsscreen) [11]
05-24 10:21:31.500: INFO/NiftyLoader(1699): internal prepare screen (hudscreen) [3]
05-24 10:21:31.510: INFO/NiftyLoader(1699): internal create screen (hudscreen) [12]
05-24 10:21:31.510: INFO/NiftyLoader(1699): internal prepare screen (pausescreen) [5]
05-24 10:21:31.530: INFO/NiftyLoader(1699): internal create screen (pausescreen) [19]
05-24 10:21:31.530: INFO/NiftyType(1699): create Screens [242]
05-24 10:21:31.580: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 7206 objects / 408312 bytes in 38ms
05-24 10:21:31.610: ERROR/statfs(1103): org block : 0 avaial, 661230 free
05-24 10:21:31.610: ERROR/statfs(1103): limit block : 0 avaial, 640750 free
05-24 10:21:31.620: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 3037 objects / 522256 bytes in 31ms
05-24 10:21:31.660: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 2834 objects / 496848 bytes in 31ms
05-24 10:21:31.700: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 2110 objects / 505696 bytes in 31ms
05-24 10:21:31.740: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 2575 objects / 497560 bytes in 30ms
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): Nifty Data:
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children styles
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children useStyles
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children useControls
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children registerSounds
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children registeredMusic
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children registeredEffect
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children popups
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children controlDefinitions
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): children screens: 7
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (id => homescreen, controller => com.lesmobilizers.tehmoballizer.screens.HomeScreen)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): children layers: 1
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (id => layer1, backgroundColor => #ccc5, childLayout => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): children elements: 1
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => false, height => 75%, backgroundColor => #000f, align => center, width => 35%, childLayout => vertical, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (startDelay => 0, direction => top, name => move, length => 300, inherit => true, mode => in)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (startDelay => 0, direction => top, name => move, length => 300, inherit => true, mode => out)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): children elements: 9
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => false, height => 27.5%, backgroundColor => #0000, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => true, height => 10%, backgroundColor => #050c, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (onClick => onClickButton(quickgamescreen))
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => false, height => 5%, backgroundColor => #0000, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => true, height => 10%, backgroundColor => #005c, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (onClick => onClickButton(solomodescreen))
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => false, height => 5%, backgroundColor => #0000, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => true, height => 10%, backgroundColor => #500c, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (onClick => onClickButton(settingsscreen))
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => false, height => 5%, backgroundColor => #0000, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => true, height => 10%, backgroundColor => #555c, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (onClick => onClickButton(exitgame))
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => false, height => 27.5%, backgroundColor => #0000, align => center, width => 75%, childLayout => center, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): no children elements
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (id => quickgamescreen, controller => com.lesmobilizers.tehmoballizer.screens.QuickGameScreen)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): children layers: 1
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (id => layer1, backgroundColor => #ccc5, childLayout => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): children elements: 1
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): [element] (visibleToMouse => false, height => 75%, backgroundColor => #050c, align => center, width => 35%, childLayout => vertical, valign => center)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): ()
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (startDelay => 0, direction => top, name => move, length => 300, inherit => true, mode => in)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): (startDelay => 0, direction => top, name => move, length => 300, inherit => true, mode => out)
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): children elements: 10
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): <panel
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): loadFromFile took [1053]
05-24 10:21:31.740: INFO/de.lessvoid.nifty.Nifty(1699): gotoScreen [homescreen]
05-24 10:21:31.750: INFO/de.lessvoid.nifty.Nifty(1699): gotoScreenInternal [homescreen]
05-24 10:21:31.750: INFO/Effect(1699): starting effect [(Move[null])] with customKey [null]
05-24 10:21:31.750: INFO/EffectProcessor(1699): adding effect as active
05-24 10:21:31.760: WARN/OGLESShaderRenderer(1699): glError 1280
05-24 10:21:31.760: INFO/global(1699): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
05-24 10:21:31.760: INFO/global(1699): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
05-24 10:21:31.830: INFO/global(1699): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
05-24 10:21:31.840: INFO/global(1699): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
05-24 10:21:31.840: WARN/OGLESShaderRenderer(1699): glError 1280
05-24 10:21:31.880: DEBUG/lifecycle(1296): onStop:com.lge.launcher.Launcher@46cbc488
05-24 10:21:31.880: INFO/INKSPOT(1296): ContentResolver.unregisterContentObserver : android.database.AbstractCursor$SelfContentObserver@46bf7438
05-24 10:21:31.880: INFO/INKSPOT(1296): ContentResolver.unregisterContentObserver : android.database.AbstractCursor$SelfContentObserver@46be7010
05-24 10:21:31.880: INFO/INKSPOT(1296): ContentResolver.unregisterContentObserver : android.database.AbstractCursor$SelfContentObserver@46d4df60
05-24 10:21:31.880: INFO/INKSPOT(1296): ContentResolver.unregisterContentObserver : android.database.AbstractCursor$SelfContentObserver@46f1ea50
05-24 10:21:32.060: INFO/Screen(1699): onStartScreen has ended
05-24 10:21:32.120: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 3860 objects / 469120 bytes in 42ms
05-24 10:21:32.610: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 8841 objects / 344208 bytes in 41ms
05-24 10:21:32.810: DEBUG/dalvikvm(1103): GC_EXPLICIT freed 2372 objects / 108368 bytes in 79ms
05-24 10:21:33.130: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 13108 objects / 524040 bytes in 50ms
05-24 10:21:33.600: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 13095 objects / 524760 bytes in 49ms
05-24 10:21:34.040: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 13071 objects / 523768 bytes in 46ms
05-24 10:21:34.470: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 13095 objects / 524984 bytes in 44ms
05-24 10:21:34.890: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 13068 objects / 523904 bytes in 44ms
05-24 10:21:35.380: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 13109 objects / 525128 bytes in 44ms
05-24 10:21:35.830: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 13105 objects / 524888 bytes in 48ms
05-24 10:21:36.270: DEBUG/dalvikvm(1699): GC_FOR_MALLOC freed 13054 objects / 523144 bytes in 46ms
05-24 10:21:36.330: WARN/dalvikvm(1699): threadid=8: thread exiting with uncaught exception (group=0x40020ce0)


Thx for your help !

I tried to run the app using AndroidHarness (as it’s supposed to handle touch events) but I’m encoutering the following error:


05-25 16:16:24.424: INFO/MaterialDef(2319): Loaded material definition: {0}
05-25 16:16:24.454: ERROR/StatusBarPolicy(1103): isRilReset data = false
05-25 16:16:24.454: WARN/AndroidLocator(2319): Failed to locate {0}
05-25 16:16:24.694: INFO/global(2319): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-25 16:16:24.744: WARN/AndroidLocator(2319): Failed to locate {0}
05-25 16:16:24.974: INFO/global(2319): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-25 16:16:24.974: WARN/AndroidLocator(2319): Failed to locate {0}
05-25 16:16:25.164: INFO/global(2319): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-25 16:16:25.184: WARN/AndroidLocator(2319): Failed to locate {0}
05-25 16:16:25.374: INFO/global(2319): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-25 16:16:25.374: WARN/AndroidLocator(2319): Failed to locate {0}
05-25 16:16:25.594: INFO/global(2319): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-25 16:16:25.614: INFO/de.lessvoid.nifty.Nifty(2319): loadFromFile [Interface/Screens/screensmanager.xml]
05-25 16:16:25.614: INFO/global(2319): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-25 16:16:25.614: INFO/NiftyLoader(2319): loading new nifty xml file with schemaId [nifty.nxs]
05-25 16:16:25.894: INFO/NiftyLoader(2319): loaded nifty xml file with schemaId [nifty.nxs] took [277 ms]
05-25 16:16:25.894: INFO/NiftyType(2319): debug out [0]
05-25 16:16:25.894: INFO/NiftyType(2319): resourceBundles [0]
05-25 16:16:25.894: INFO/NiftyType(2319): registerStyle [0]
05-25 16:16:25.894: INFO/NiftyType(2319): registerControlDefinition [0]
05-25 16:16:25.894: INFO/NiftyType(2319): registerEffect [0]
05-25 16:16:25.894: INFO/NiftyType(2319): registerSound [0]
05-25 16:16:25.894: INFO/NiftyType(2319): registerMusic [0]
05-25 16:16:25.894: INFO/NiftyType(2319): registerMouseCursor [0]
05-25 16:16:25.894: INFO/NiftyType(2319): registerPopup [0]
05-25 16:16:25.894: INFO/dalvikvm(2319): Could not find method java.awt.Color.HSBtoRGB, referenced from method de.lessvoid.nifty.elements.render.PanelRenderer.
05-25 16:16:25.894: WARN/dalvikvm(2319): VFY: unable to resolve static method 16784: Ljava/awt/Color;.HSBtoRGB (FFF)I
05-25 16:16:25.904: WARN/dalvikvm(2319): threadid=8: thread exiting with uncaught exception (group=0x40020ce0)


And the screen returns:

java.lang.NoClassDef.FoundError: java.awt.Color


Like it doesn't support RGBA format...
1 Like
Could not find method java.awt.Color.HSBtoRGB


doesnt look good. Awt seems to be not fully supported under android. I remember other issues with awt.

This needs research about the state of awt on android.

What is HSB? Try to avoid that format because nifty seems to rely on awt to convert it.

HSB = Hue Saturation Brightness. Wikipedia link

But what’s weird is that the same app did work (almost cause of touch events bugs) well before I use AndroidHarness. I mean the display was fine. And I don’t think that AndroidHarness handles colors differently from AndroidApplication… dose it ?

It seems NiftyGui is using classes that are only available on desktop and not on Android.

@void256: Perhaps it is possible to refactor PanelRenderer so it doesn’t use it?

It has nothing to do with AndroidHarness, its a library thing. Maybe nifty has changed recently.



A similar function is available on android:



http://developer.android.com/reference/android/graphics/Color.html#HSVToColor%28float[]%29



But i think that will not help much, unless a special nifty for android port is done.



Another wild guess: Try to include the awt.jar from the apache harmony project.

You seem right, it appears that the libs I had from an update of the SVN are not the same than the ones I had from an older project. I can now display the pannels of my GUI. But sadly I still have this touch problem which I thought would be solved passing by AndroidHarness… :(.


05-26 11:34:30.279: INFO/de.lessvoid.nifty.Nifty(1529): gotoScreen [homescreen]
05-26 11:34:30.279: INFO/de.lessvoid.nifty.Nifty(1529): gotoScreenInternal [homescreen]
05-26 11:34:30.283: INFO/Effect(1529): starting effect [(Move[null])] with customKey [null]
05-26 11:34:30.283: INFO/EffectProcessor(1529): adding effect as active
05-26 11:34:30.353: WARN/OGLESShaderRenderer(1529): glError 1280
05-26 11:34:30.424: WARN/OGLESShaderRenderer(1529): glError 1280
05-26 11:34:30.451: WARN/OGLESShaderRenderer(1529): glError 1280
05-26 11:34:30.607: INFO/Screen(1529): onStartScreen has ended
05-26 11:34:40.092: WARN/dalvikvm(1529): threadid=9: thread exiting with uncaught exception (group=0x40015560)
05-26 11:34:40.095: ERROR/AndroidHarness(1529): java.lang.NoSuchMethodError: de.lessvoid.nifty.NiftyInputConsumer.processMouseEvent
05-26 11:34:40.095: ERROR/AndroidHarness(1529): Uncaught exception thrown in Thread[GLThread 10,5,main]: com.jme3.niftygui.InputSystemJme.onMouseButtonEventQueued(126) com.jme3.niftygui.InputSystemJme.forwardEvents(169) de.lessvoid.nifty.Nifty.update(224) com.jme3.niftygui.InputSystemJme.endInput(92) com.jme3.input.InputManager.processQueue(551) com.jme3.input.InputManager.update(600) com.jme3.app.Application.update(463) com.jme3.app.SimpleApplication.update(228) com.jme3.system.android.OGLESContext.onDrawFrame(313) android.opengl.GLSurfaceView$GLThread.guardedRun(1363) android.opengl.GLSurfaceView$GLThread.run(1118)


Has someone already successfully made Nifty onClick work on Android ?

argh



java.awt.Color.HSBtoRGB was only added recently to support a special debug mode (that renders each panel in a random color). I’ve used that java.awt.Color.HSBtoRGB method to generate different colors with the same saturation and brightness xD



I wasn’t aware of java.awt not available everywhere. Since this was only added for a debug mode I’ve changed it to totally random colors and commited it to svn. sorry about that :wink:

I updated SVN several times and changed my Nifty libs but I still have a similar error. O_o

You have to get the new nifty jars from the nifty sourceforge site. The jars in jme3 are snapshots which are taken from time to time.

Oh ok I thought he had committed it to the jMP SVN… thx !



Edit: I only found “nifty-*-1.2.jar” files on sourceforge… are these the latest ones ? Cause those ones make me have a black screen…



Btw, I can’t checkout the SVN repository… what is the exact URL ? Cause the one of the sourceforge site (https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui nifty-gui ) doesn’t work.

Im using https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty/trunk



If that doesnt work for you, try with http and not https

The URL worked but I can’t find any build file or “.jar” file into the project I have… how to ?

There is a pom.xml, i guess you need maven to build it run :

mvn package



or grab the latest jar from the repository :



http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty/1.3-SNAPSHOT/

Have you had any success with nifty-gui since? I’ve been trying to use 1.3-SNAPSHOT without much success. Same problem - I’ve got stuck on mouse clicks, they definitely do not map onto touches. However, I am getting (lots and lots of) warnings from Dalvik about anonymous inner classes. Dalvik complains about various unused libraries depending what is found on the class path (oten in jinput and sometimes classes in xmlpull which are needed) . It happens only in the presence of Nifty GUI. Any ideas on this. It may be quite separate from mouse support…

s4milli4 said:
The URL worked but I can't find any build file or ".jar" file into the project I have... how to ?

Nifty now have nightly builds, so you can get their jars from there, see:
http://sourceforge.net/apps/mediawiki/nifty-gui/index.php?title=Nightly_Builds

However in my case, even the most recent builds refuse to work with the mouse. Interestingly, it happened twice that in TestNiftyGui the front panel would detect my finger hovering over the screen and then take the click. I cannot reproduce it though. May be the nifty mouse and gui coordinates do not match?

More testing on Nifty with Android revealed some interesting behaviour. Try TestNiftyGui.

I have managed to detect mouse clicks. However, this can only happen when the fly camera is disabled. When the camera is enabled Nifty seems to lose the mouse focus.

The second problem is that mouse clicks are detected in the wrong place. While the XML positions the panel in the middle of the screen, it is displayed to the left of the centre. The mouse clicks and hovers however are registered where the panel is supposed to be shown.

So it seems we have some mix up with the coordinate system. In fact, I have found out that the android screen is not reported correctly. This could be corrected either in the class derived from the SimpleApplication but I think the bug is somewhere in the AndroidHarness, so I thought to add the following to the main class derived from the AndroidHarness:

pre type="java"
@Override


public void onCreate(Bundle savedInstance) {


super.onCreate(savedInstance);


WindowManager wind = this.getWindowManager();


Display disp = wind.getDefaultDisplay();


app.getContext().getSettings().setResolution(


disp.getWidth(),


disp.getHeight());


}



/pre

In this way if you code for multiple platforms, this correction will not interfere with the rest of your code.

1 Like
Have you had any success with nifty-gui since?


Nope, actually I gave up this part of my project cause it was too much time waste so I now use the classical Android menus.

I am getting (lots and lots of) warnings from Dalvik about anonymous inner classes


About this, I had the same problem but it wasn't that bothering. You could remove the "nifty-examples-1.3-SNAPSHOT.jar" from your libs cause I know this one was keeping me away from building successfully (some redundant classes).

this can only happen when the fly camera is disabled


Yes you have to keep it disabled. So you managed to get the touch work ? Interesting... and do you have any resolution display problems ? What is the resolution of the device you use ? Cause with the 800x480 resolution, Nifty could'nt match correctly.
The second problem is that mouse clicks are detected in the wrong place


I had a similar issue :

http://hub.jmonkeyengine.org/groups/android/forum/topic/nifty-and-screen-resolution/

i fixed it like that by forcing resolution :
[java]
@Override
public void start() {
super.start();
this.getContext().getSettings().setResolution(480, 800);
}[/java]