Pages

Subscribe:

Saturday, January 21, 2012

Java API and Libraries Supported in Android

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). This article lists what is and is not included.

Supported
The following standard packages are supported in Android as of the latest release candidate. Consult the Java 2 Platform Standard Edition 5.0 API documentation for information on how to use them.
  • java.io - File and stream I/O
  • java.lang (except java.lang.management) - Language and exception
  • support
  • java.math - Big numbers, rounding, precision
  • java.net - Network I/O, URLs, sockets
  • java.nio - File and channel I/O
  • java.security - Authorization, certificates, public keys
  • java.sql - Database interfaces
  • java.text - Formatting, natural language, collation
  • java.util (including java.util.concurrent) - Lists, maps, sets, arrays, collections
  • javax.crypto - Ciphers, public keys
  • javax.net - Socket factories, SSL
  • javax.security (except javax.security.auth.kerberos, javax.security.auth.spi, and javax.security.sasl)
  • javax.sound - Music and sound effects
  • javax.sql (except javax.sql.rowset) - More database interfaces
  • javax.xml.parsers - XML parsing
  • org.w3c.dom (but not sub-packages) - DOM nodes and elements
  • org.xml.sax - Simple API for XML
Not supported

These packages, normally a part of the Java 2 Platform Standard Edition,
are not supported by Android.
  • java.applet
  • java.awt
  • java.beans
  • java.lang.management
  • java.rmi
  • javax.accessibility
  • javax.activity
  • javax.imageio
  • javax.management
  • javax.naming
  • javax.print
  • javax.rmi
  • javax.security.auth.kerberos
  • javax.security.auth.spi
  • javax.security.sasl
  • javax.swing
  • javax.transaction
  • javax.xml (except javax.xml.parsers)
  • org.ietf.*
  • org.omg.*
  • org.w3c.dom.* (sub-packages)

Third party libraries

In addition to the standard libraries listed above, The Android SDK
comes with a number of third-party libraries for your convenience.
  • org.apache.commons.codec - Utilities for encoding and decoding
  • org.apache.commons.httpclient - HTTP authentication, cookies, methods, and protocol
  • org.bluez - Bluetooth support
  • org.json - JavaScript Object Notation

7 comments:

greeny said...

http://learnmobileapps.blogspot.in/

abby said...

as i am a working man and i wants to learn android App development
But I found Working on SDK or Ecilipse for maing app alone is very difficult.
So I get enrolled with http://www.wiziq.com/course/3303-android-app-development-for-beginners
have i taken the right subject?
Please post

Anonymous said...

Great that I could find this blog while searching for trainers for Android.

I am writing this comment on behalf of WizIQ courses [see http://www.wiziq.com/courses/ for details]. We are looking for a trained, experienced and completely hands-on Android App Development instructor to teach online. Would you be interested? We already have an Android App Development Course - however we are looking for more experienced instructors who can also teach advanced topics. Would you be interested? Just reply me back on my email. Thanks and look forward to hear from you.

P.S. If anyone reading this comment is interested, please feel free to contact us at courses [at] wiziq [dot] com. I also apologize if active solicitation is against the comment policy of this blog. Thanks!

Unknown said...

As a result of mobile devices have become additional and additional well-liked and obtainable, so the Android Developer are currently to fulfill an individual needs.

Top Mobile App Development Companies India said...

wow that post is nice and if u have some code then please share with me i m waiting for yours the next post thanks

Php Development Services India, &&
Hire Titanium Developer

Unknown said...

is import javax.websocket supported by Android?

Unknown said...

Trust me, I am a really good writer but your blog is the ultimate. It comes out clean and fresh, with no-nonsense writing. Looking forward to more such blogs from your side. Can you send me other blog links that you have posted? My profile is available at video marketing online , amazing corporate brochure design. I have earned my share of money too! I am a top rated seller at these marketplaces. Feels good.

Post a Comment