1.多线程下使用数据库
可能会碰到锁异常:
disk I/O error - SQLITE_IOERR_LOCK (Sqlite code 3850): , while compiling: PRAGMA journal_mode,
2.使用其他启动模式时activity之间的传值会失效
如果要启动的页面设置了intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),当要返回数据setResult的时候,接收返回数据页面的onActivityResult中只有请求码的值时正确的,返回码会为0,intent为null;log中也会有提示:
/ActivityManager: Activity is launching as a new task, so cancelling activity result.
所以如果页面中要传值最好不要设置该启动模式啦。