package com.bwie.zhangjunjingdong.application; import android.app.Application; import android.content.Context; import android.os.Handler; import android.os.Process; import com.bwie.zhangjunjingdong.model.db.AddrDao; import com.dash.zxinglibrary.activity.ZXingLibrary; import com.umeng.socialize.Config; import com.umeng.socialize.PlatformConfig; import com.umeng.socialize.UMShareAPI; public class DashApplication extends Application { private static int myTid; private static Handler handler; private static Context context; { PlatformConfig.setWeixin("wx967daebe835fbeac", "5bb696d9ccd75a38c8a0bfe0675559b3"); PlatformConfig.setQQZone("100424468", "c7394704798a158208a74ab60104f0ba"); PlatformConfig.setSinaWeibo("3921700954", "04b48b094faeb16683c32669824ebdad", "http://sns.whalecloud.com"); } @Override public void onCreate() { super.onCreate(); myTid = Process.myTid(); handler = new Handler(); context = getApplicationContext(); UMShareAPI.get(this); Config.DEBUG = true; new AddrDao(this).initAddrDao(); ZXingLibrary.initDisplayOpinion(this); } public static int getMainThreadId() { return myTid; } public static Handler getAppHanler() { return handler; } public static Context getAppContext() { return context; } }
DashApplication
最新推荐文章于 2021-12-21 14:53:20 发布