> But org.apache.harmony.* are packages rather than APIs.

android.jar only contains classes that are part of the SDK's public API.
The classes in the org.apache.harmony.* package are not part of the SDK's
public API.

Remember that android.jar has nothing to do with Android as it exists on
devices. android.jar exists to allow javac to compile Java source code
that is written to the SDK's public API, nothing more. Android on a device
has more classes than are in android.jar.

> If there are
> no such packages included in android.jar, how can these packages be
> imported by other java code?

SDK applications should not be attempting to import those classes, as they
are not part of the SDK's public API.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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