Hi,

To add a 3rd party .jar to Android I followed Android suggested
practice(1) by adding the .jar as a Library [not as an Android Library
under Eclipse (2)], but am
being told this may induce byte code incompatibilities?

Can I safely use a .jar compiled with a JDK in Android?

I think I can but am told by a fellow developer:

 "This is wrong. One missing method (even if it is one of many overloads
of a single method name) that is present in the JDK but not in Android,
and you've got byte code that is only compatible with the JDK, but not
with Android.

Using an Android SDK is the only safe (and the easiest) way of getting
byte code that runs under Android without any surprises. No way, of
doing the same using only a JDK."

If this is true, where can I file a bug against your documentation.

Shawn

(1) 
http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary
(2) I see adding as a .jar easier than making an Android Library as
that is not supported AFAIK under Netbeans (which some of our
developers use)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to