Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1018)

Unified Diff: apk/java/org/chromium/simple/MainActivity.java

Issue 949803002: Deconstructed APK prototyping Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+}
« no previous file with comments | « apk/hijack/org/chromium/deconstructed/ResourceInstaller.java ('k') | apk/java/org/chromium/simple/MainApplication.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698