aspose file tools*
The moose likes Android and the fly likes Using other java libraries within Android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Using other java libraries within Android" Watch "Using other java libraries within Android" New topic
Author

Using other java libraries within Android

Anup Francis
Ranch Hand

Joined: Jun 17, 2008
Posts: 45
Hi Mark,

Can we add our own java libraries to be used within Android?

Also, Does Android provide out of the box support for google maps and other google api's?


SCJP 5.0, SCWCD 1.4, SCBCD 5.0, SCDJWS 1.4 & 5.0, SCSNI, ICSD for XML, SCEA 5 , ACE: Flex 3.0 and Air, ACE : Flex 4.0
Neerhaj Joshi
Greenhorn

Joined: Mar 02, 2009
Posts: 9
Yes, you can add your own jars. And Android does provide APIs for several Google services.
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Anup Francis wrote:Also, Does Android provide out of the box support for google maps and other google api's?


I also believe that Android is supposed to be seamlessly intergated with other Google's services... I once bookmarked this. Hope it is interesting to you as well...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Mark L. Murphy
Author
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
Can we add our own java libraries to be used within Android?


Yes and sort of.

Android supports incorporating third-party JARs into Android apps. However, those JARs might assume they are on JavaSE (or, worse, JavaME) and therefore be missing some important APIs.

Also, you will have some problems if the JAR was compiled using older Java (e.g., 1.4.2) or non-Sun Java (e.g., gcj). If the source is available, I recommend recompiling the code using the same compiler that you would use for your Android app.


Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development http://commonsware.com/Android/
 
Don't get me started about those stupid light bulbs.
 
subject: Using other java libraries within Android
 
Similar Threads
Android in Action -- Heavyweight, RIA nature
Android In Practice and NDK
well JAVA may also used? together(with Obj-C) or Java alone
Android Certification
Difference between normal java and Android java