performance enhancements
better 2D drawing
This commit is contained in:
@@ -3,6 +3,7 @@ package indoor.java;
|
||||
import android.os.Bundle;
|
||||
import android.view.WindowManager;
|
||||
import org.qtproject.qt5.android.bindings.QtActivity;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class MyActivity extends QtActivity {
|
||||
|
||||
|
||||
@@ -64,16 +64,18 @@ public class StepLoggerClient {
|
||||
/** static access from C++ */
|
||||
public static int log(double x, double y, double z) {
|
||||
Log.d("me", "got values");
|
||||
instance._log(x,y,z);
|
||||
return 1337; // return a magic-code that is checked within c++
|
||||
return instance._log(x,y,z);
|
||||
}
|
||||
|
||||
private void _log(double x, double y, double z) {
|
||||
private int _log(double x, double y, double z) {
|
||||
Log.d("me", mService + "");
|
||||
if (mService == null) {return;}
|
||||
if (mService == null) {return 0;}
|
||||
try {
|
||||
mService.logPosition(System.currentTimeMillis(), x, y, z);
|
||||
} catch (final Exception e) {;}
|
||||
return 1337;
|
||||
} catch (final Exception e) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user