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());
}
Aggregations