| | |
| | | myThread = new MyThread(); |
| | | myThread.start(); |
| | | } |
| | | // initDb(); |
| | | // initSqlMap(); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public void onCreate(Bundle savedInstanceState) { |
| | | super.onCreate(savedInstanceState); |
| | | initDb(); |
| | | db=openOrCreateDatabase("/data/data/com.bsk.zhangbo.demoforbsk/databases/aibatis_test_db", Context.MODE_PRIVATE, null); |
| | | TestDao.getInstance().test(); |
| | | DeviceMng.getInstance().findDevice(); |
| | |
| | | sDensity = getResources().getDisplayMetrics().scaledDensity; |
| | | |
| | | String s = FileUtil.getStringFromFile("/system/a"); |
| | | int res = FSDK.ActivateLibrary(s); |
| | | int res = FSDK.ActivateLibrary("bSB3NdbTnv/0eW/uhypSe6hDMtjZ76Sisw5NwcN+0sfahxOtoUW22el54e/M6cSG5/xsdVIorPgugbTIfoIIn7ltyw1QMSleNebVx/Xe8aRA8bP+aVDybjoWdW/0rDP9Pv7yqBzNXyuwjgsVhPB53VGP8oTirTSUP7PTzSwOEe0="); |
| | | if (res != FSDK.FSDKE_OK) { |
| | | mIsFailed = true; |
| | | showErrorAndClose("failed", res); |
| | |
| | | @Override |
| | | protected void onStop() { |
| | | super.onStop(); |
| | | Config.sqlMap.getDb().close(); |
| | | //Config.sqlMap.getDb().close(); |
| | | db.close(); |
| | | } |
| | | } |
| | | |