Hey all, I am trying to use *com.sun.cldc.io.j2me.socket.protocol* class in android for converting code from j2me to android. But dalvik vm is not getting native implementation of * protected static native int open0(byte hostname[], int port, int mode);* in protocol class.Can anyone tell where i am going wrong. The error shown on logcat is:
12-09 18:31:13.948: DEBUG/dalvikvm(1467): +++ not scanning '/system/lib/libwebcore.so' for 'open0' (wrong CL) 12-09 18:31:13.969: DEBUG/dalvikvm(1467): +++ not scanning '/system/lib/libmedia_jni.so' for 'open0' (wrong CL) 12-09 18:31:13.979: WARN/dalvikvm(1467): No implementation found for native Lcom/sun/cldc/io/j2me/http/Protocol;.open0 ([BII)I 12-09 18:31:14.010: WARN/dalvikvm(1467): threadid=17: thread exiting with uncaught exception (group=0x40010e28) 12-09 18:31:14.025: ERROR/AndroidRuntime(1467): Uncaught handler: thread Thread-12 exiting due to uncaught exception 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): java.lang.UnsatisfiedLinkError: open0 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at com.sun.cldc.io.j2me.socket.Protocol.open0(Native Method) 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at com.sun.cldc.io.j2me.socket.Protocol.openPrim(Protocol.java:120) 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at javax.microedition.io.Connector.openPrim(Connector.java:176) 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at javax.microedition.io.Connector.open(Connector.java:56) 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at javax.microedition.io.Connector.open(Connector.java:50) 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at javax.microedition.io.Connector.open(Connector.java:44) 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at mandibhav.connect.HttpCommunication.getData(HttpCommunication.java:66) 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at mandibhav.connect.HttpCommunication.run(HttpCommunication.java:134) 12-09 18:31:14.069: ERROR/AndroidRuntime(1467): at java.lang.Thread.run(Thread.java:935) Please reply ASAP --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---