OLD | NEW |
(Empty) | |
| 1 package org.chromium.simple; |
| 2 |
| 3 import android.app.Application; |
| 4 import android.content.Context; |
| 5 |
| 6 public class MainApplication extends Application { |
| 7 private static final String TAG = "org.chromium.simple.MainApplication"; |
| 8 |
| 9 static { |
| 10 android.util.Log.e(TAG, "<static>"); |
| 11 } |
| 12 |
| 13 @Override |
| 14 public void onCreate() { |
| 15 super.onCreate(); |
| 16 android.util.Log.e(TAG, "onCreate()"); |
| 17 } |
| 18 |
| 19 public void initCommandLine() { |
| 20 android.util.Log.e(TAG, "initCommandLine()"); |
| 21 } |
| 22 |
| 23 public static void initCommandLine(Context context) { |
| 24 ((MainApplication) context.getApplicationContext()).initCommandLine(); |
| 25 }; |
| 26 |
| 27 } |
OLD | NEW |