简体   繁体   中英

Why have some java libraries been kept out of android sdk?

All java libraries are not present within android eg javax.script, java.awt.* etc. It makes it very difficult to use a lot of useful libraries written in java (eg libraries for java script evaluation, image processing, etc.).

I am just curious, would anyone have an idea as to why android team has decided to keep these out of android sdk?

This article might provide some basic explanation:

Google's mobile phone platform, Android, supports a relatively large subset of the Java Standard Edition 5.0 library. Some things were left out because they simply didn't make sense (like printing), and others because better APIs are available that are specific to Android (like user interfaces).

I think that other reasons might include the fact that the mobile platform does not have the computational resources that other devices such as laptops and desktops might have (even though this seems to be changing with the introduction of high end mobile phones).

Edit: I think that the concept of 'usefulness' varies, so what yourself find useful might not be so for other people. If you want specific reasons why this specific package was left out, it is of my opinion that you are asking it in the wrong place. With regards to this specific package, the javax.script , you might want to consider taking a look at this previous SO post which proposes an alternative.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM