Sign in to follow this  
tom_mai78101

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this