• Advertisement
Sign in to follow this  

Small non-trivial thing: Apparently you can do this to your advantage.

This topic is 1955 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[url="http://stackoverflow.com/questions/4112269/android-3d-math-library-vector-matrix-etc-similar-to-javax-vecmath-matrix4f"]Source.[/url]

What some people may or may not know, is that you can actually "grab" a standard library class and use it, by obtaining the source code of a specific Java or Javax library class, and place it into your Android project.

There are some classes when about to be compiled, the source files may contain errors, thus unable to make it work in Android.

The link I have provided says, you can import a Vector Math class into your Android project, and , by my guess, you could make use of its functionality in OpenGL ES related features, without re-inventing some of the wheels.

I wondered if it's possible to make some other useful library classes taken from Java or Javax, put them in the project(s), and get pleasant results from them. This is probably a game changer, right there.

Share this post


Link to post
Share on other sites
Advertisement
Yes, you can drop the source code from somewhere else into your project. Just like dropping any source code into your project.

I assumed this was an obvious thing, but I guess that's something that comes with years of experience.

Share this post


Link to post
Share on other sites
But the downside of this is, you can't be entirely sure the library(-ies) that you have dropped is compatible with Android's Dalvik virtual machine, such as the Color class. I think it may warrant something like a notice, or disclaimer for some top-notch libraries mentioning that they may or may not be compatible will all Android devices (including devices that's not well-known to consumers).

It's my opinion.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement