package net.wequick.example.small.app.main;

import android.app.Application;
import android.util.Log;

/**
 * Created by Administrator on 2016/2/17.
 */
public class AppContext extends Application {

    public AppContext(){
        Log.d("main application","AppContext()");
    }

    @Override
    public void onCreate() {
        super.onCreate();
        System.out.println(this.getSharedPreferences("small.app-versions", 0).getAll());
        Log.d("main application","onCreate()");
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
    }
}

@@ -193,16 +193,70 @@
 tion %7B%0A%0A
+    private static final String TAG = %22Main Plugin%22;%0A%0A
     publ
@@ -270,16 +270,17 @@
 ontext()
+ 
 %7B%0A      
@@ -287,35 +287,21 @@
   Log.d(
-%22main application%22,
+TAG, 
 %22AppCont
@@ -397,27 +397,82 @@
     
-System.out.println(
+Log.d(TAG, %22onCreate()%22);%0A%0A        // Test shared data%0A        Log.d(TAG, 
 this
@@ -526,27 +526,39 @@
 getAll()
+.toString()
 );%0A
+%0A
         
 Log.d(%22m
@@ -553,45 +553,107 @@
     
-Log.d(%22main application%22,%22onCreate()%22
+// Test resources%0A        String s = this.getString(R.string.action_settings);%0A        Log.d(TAG, s
 );%0A 

Add sample for using resources in plugin application