On Dec 9, 5:30 am, "suchita bhardwaj" <[EMAIL PROTECTED]>
wrote:
>             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:

That sounds like a native method provided as part of a Sun Java
runtime.  Android doesn't ship with any com.sun.* components; the only
"sun" class is sun.misc.Unsafe.

There's not a lot of javax.microedition classes in Android either,
just some "khronos" Open GL stuff.  It sounds like you're trying to
pull Sun's runtime into Android, which isn't going to work.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to