Search in sources :

Example 1 with CrashHandler

use of com.lingtuan.firefly.util.CrashHandler in project SmartMesh_Android by SmartMeshFoundation.

the class NextApplication method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    /**
     * Initialize the folder
     */
    SDCardCtrl.initPath(this);
    XmppUtils.isLogining = false;
    mContext = this;
    try {
        myInfo = new UserInfoVo().readMyUserInfo(this);
        Resources res = getResources();
        Configuration config = new Configuration();
        config.setToDefaults();
        config.fontScale = 1;
        res.updateConfiguration(config, res.getDisplayMetrics());
    } catch (Exception e) {
        e.printStackTrace();
    }
    NetRequestUtils.getInstance().getServerTime(this);
    initImageLoaderConfig();
    /**
     *Initialize the expression
     */
    SmileyParser.init(this);
    mSmileyParser = SmileyParser.getInstance();
    /**
     *Initialization error log collection
     */
    CrashHandler crashHandler = CrashHandler.getInstance();
    crashHandler.init(getApplicationContext());
}
Also used : ImageLoaderConfiguration(com.nostra13.universalimageloader.core.ImageLoaderConfiguration) Configuration(android.content.res.Configuration) CrashHandler(com.lingtuan.firefly.util.CrashHandler) Resources(android.content.res.Resources) UserInfoVo(com.lingtuan.firefly.vo.UserInfoVo)

Aggregations

Configuration (android.content.res.Configuration)1 Resources (android.content.res.Resources)1 CrashHandler (com.lingtuan.firefly.util.CrashHandler)1 UserInfoVo (com.lingtuan.firefly.vo.UserInfoVo)1 ImageLoaderConfiguration (com.nostra13.universalimageloader.core.ImageLoaderConfiguration)1