I'm trying to implementing Box2D through NDK. But getting the following exception,
10-14 10:59:22.983: ERROR/AndroidRuntime(745): Uncaught handler: thread main exiting due to uncaught exception 10-14 10:59:23.042: ERROR/AndroidRuntime(745): java.lang.RuntimeException: Unable to start activity ComponentInfo {comNI.Box2dthrNDK/comNI.Box2dthrNDK.Box2dthrNDK}: java.lang.NullPointerException I am trying to access this method, public void createWorld(float minX, float minY, float maxX,float maxY, float gravityX, float gravityY); I'm calling from my view class as, createWorld(0,0,50,50,0,10); public native void createWorld(float minX, float minY, float maxX, float maxY, float gravityX, float gravityY); Any one please help me. This is my first app in NDK. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---