.exmaples added Android builder additional commentary

git-svn-id: svn://ultimatepp.org/upp/trunk@8660 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2015-07-09 20:24:47 +00:00
parent 4387f25403
commit ff3a2f108d
2 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,7 @@
package org.upp.AndroidMath;
/**
* Class which whole implementaiton is native.
* Class which whole funtional implementaiton is native.
*/
public class Vector
{
@ -15,6 +15,9 @@ public class Vector
copyConstruct(vec);
}
/**
* We override finalize method due to possibilite of memory leaks.
*/
@Override
protected void finalize() throws Throwable
{
@ -37,6 +40,8 @@ public class Vector
private native void destroy();
static {
// In this place we are loading native libraries.
// Native library always has upp package name!
System.loadLibrary("AndroidMath");
}
}