.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 2dc6459f34
commit 6c414a10e8
2 changed files with 7 additions and 2 deletions

View file

@ -11,9 +11,9 @@ file
Vector.cpp,
Math readonly separator,
Vector.java,
AndroidMath.java,
Runtime readonly separator,
AndroidManifest.xml,
AndroidMath.java,
AndroidMathActivity.java;
mainconfig

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");
}
}