| Index: apk/java/org/chromium/simple/MainActivity.java
|
| diff --git a/apk/java/org/chromium/simple/MainActivity.java b/apk/java/org/chromium/simple/MainActivity.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2e21b02db844e1b0d4da298871c131acf3e54043
|
| --- /dev/null
|
| +++ b/apk/java/org/chromium/simple/MainActivity.java
|
| @@ -0,0 +1,32 @@
|
| +package org.chromium.simple;
|
| +
|
| +import org.chromium.base.library_loader.LibraryLoader;
|
| +
|
| +import android.os.Bundle;
|
| +import android.app.Activity;
|
| +
|
| +public class MainActivity extends Activity {
|
| + private static final String TAG = "org.chromium.simple.MainActivity";
|
| +
|
| + static {
|
| + android.util.Log.e(TAG, "<static>");
|
| + }
|
| +
|
| + @Override
|
| + public void onCreate(Bundle savedInstanceState) {
|
| + super.onCreate(savedInstanceState);
|
| + setContentView(R.layout.activity_my);
|
| + android.util.Log.e(TAG, "onCreate()");
|
| + MainApplication.initCommandLine(this);
|
| + try {
|
| + LibraryLoader.get(0).loadNow();
|
| + } catch (Exception e) {
|
| + android.util.Log.e(TAG, e.toString());
|
| + }
|
| + android.util.Log.e(TAG, "getValue()=" + nativeGetValue());
|
| + android.util.Log.e(TAG, "getValue()=" + nativeGetValue());
|
| + android.util.Log.e(TAG, "getValue()=" + nativeGetValue());
|
| + }
|
| +
|
| + private static native int nativeGetValue();
|
| +}
|
|
|