1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

AndroidGCS OSG: Now shows a cow. The model path is hardcoded.

This commit is contained in:
James Cotton 2012-08-21 00:23:04 -05:00
parent 129edf4398
commit 905a81844c

View File

@ -7,6 +7,7 @@ import android.app.AlertDialog;
import android.graphics.Color;
import android.graphics.PointF;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
@ -77,7 +78,10 @@ public class osgViewer extends Activity implements View.OnTouchListener, View.On
msgUiLightOn = Toast.makeText(getApplicationContext(), "toast3", Toast.LENGTH_SHORT);
msgUiLightOff = Toast.makeText(getApplicationContext(), "toast4", Toast.LENGTH_SHORT);
//osgNativeLib.loadObject(address.getText().toString());
String address = Environment.getExternalStorageDirectory().getPath() + "/Models/cow.osg";
Log.d(TAG, "Address: " + address);
osgNativeLib.loadObject(address);
//address.getText().toString());
}
@Override protected void onPause() {