标签:print div 接收器 owb pen xtend func 静态 ide
public class MyApplication extends Application{
private static Context context;
@Override
public void onCreate() {
super.onCreate();
context = getApplicationContext();
}
public static Context getContext(){
return context;
}
}
application
android:name="com.example.euler_kalvinhe.takephoto.MyApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >**
Android-获取全局Context的技巧-android学习之旅(68)
标签:print div 接收器 owb pen xtend func 静态 ide
原文地址:http://www.cnblogs.com/llguanli/p/7244190.html