Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

State of the Java support?

 
Rancher
Posts: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Reading about someone's experience on how to get the Rhino library working in Android, i noticed this statement:

java.beans.PropertyChangeListener is not available on Android.



Does that mean that the Java version running on Android is not quite conformant to the public Java API? Or does it implement some Java ME profile that doesn't have this class? (I noticed that the class is part of both the CDC Personal Basis Profile and Personal Profile, though.)
 
Author
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Does that mean that the Java version running on Android is not quite conformant to the public Java API?



Android's class library does not necessarily line up with any existing Java API from Sun. It is closest to JavaSE.

Many of the java.* and javax.* implementations are brought over from Apache Harmony, so if there is something in particular you are missing, you might search there for something you can use. For example, the whole java.beans package is missing, but you may be able to add it to your own project.

The core Android team was aiming for an API richer than JavaME yet still svelte enough to fit in a modest amount of flashable ROM alongside everything else needed to run a phone. The more ROM you need, the more expensive the device gets, on average.
 
Ulf Dittmer
Rancher
Posts: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mark, that makes it clearer.
 
Ulf Dittmer
Rancher
Posts: 43026
76
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By now, the newer Android API versions have some of the java.beans classes, and PropertyChangeListener in particular. But most of that package is still missing; compare http://developer.android.com/reference/java/beans/package-summary.html to http://java.sun.com/javase/6/docs/api/java/beans/package-summary.html
 
Then YOU must do the pig's work! Read this tiny ad. READ IT!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic