Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using other java libraries within Android

 
Anup Francis
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Neerhaj Joshi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can add your own jars. And Android does provide APIs for several Google services.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic