OLD | NEW |
(Empty) | |
| 1 package org.chromium.simple; |
| 2 |
| 3 import org.chromium.base.library_loader.LibraryLoader; |
| 4 |
| 5 import android.os.Bundle; |
| 6 import android.app.Activity; |
| 7 |
| 8 public class MainActivity extends Activity { |
| 9 private static final String TAG = "org.chromium.simple.MainActivity"; |
| 10 |
| 11 static { |
| 12 android.util.Log.e(TAG, "<static>"); |
| 13 } |
| 14 |
| 15 @Override |
| 16 public void onCreate(Bundle savedInstanceState) { |
| 17 super.onCreate(savedInstanceState); |
| 18 setContentView(R.layout.activity_my); |
| 19 android.util.Log.e(TAG, "onCreate()"); |
| 20 MainApplication.initCommandLine(this); |
| 21 try { |
| 22 LibraryLoader.get(0).loadNow(); |
| 23 } catch (Exception e) { |
| 24 android.util.Log.e(TAG, e.toString()); |
| 25 } |
| 26 android.util.Log.e(TAG, "getValue()=" + nativeGetValue()); |
| 27 android.util.Log.e(TAG, "getValue()=" + nativeGetValue()); |
| 28 android.util.Log.e(TAG, "getValue()=" + nativeGetValue()); |
| 29 } |
| 30 |
| 31 private static native int nativeGetValue(); |
| 32 } |
OLD | NEW |