logcat - Application loading slow and how to use strict mode in android -


i facing lots of message through strict mode in logcat. may reason if click next buttton on ui, takes long time 1 min. how occure this, data loading process fast. why got strict mode log? don't know. , finally, how use strict mode in 4.1.6 . meaning of developer_mode. , strictmode details ,

sample of logcat:

11-27 13:08:14.220: d/strictmode(11010): strictmode policy violation; ~duration=1492 ms: android.os.strictmode$strictmodediskreadviolation: policy=23 violation=2 11-27 13:08:14.220: d/strictmode(11010):    @ android.os.strictmode$androidblockguardpolicy.onreadfromdisk(strictmode.java:1135) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteconnection.applyblockguardpolicy(sqliteconnection.java:1041) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteconnection.executeforlong(sqliteconnection.java:595) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteconnection.setforeignkeymodefromconfiguration(sqliteconnection.java:281) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteconnection.open(sqliteconnection.java:214) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteconnection.open(sqliteconnection.java:193) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteconnectionpool.openconnectionlocked(sqliteconnectionpool.java:463) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteconnectionpool.open(sqliteconnectionpool.java:185) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteconnectionpool.open(sqliteconnectionpool.java:177) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqlitedatabase.openinner(sqlitedatabase.java:804) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqlitedatabase.open(sqlitedatabase.java:789) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqlitedatabase.opendatabase(sqlitedatabase.java:694) 11-27 13:08:14.220: d/strictmode(11010):    @ android.app.contextimpl.openorcreatedatabase(contextimpl.java:952) 11-27 13:08:14.220: d/strictmode(11010):    @ android.content.contextwrapper.openorcreatedatabase(contextwrapper.java:256) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteopenhelper.getdatabaselocked(sqliteopenhelper.java:224) 11-27 13:08:14.220: d/strictmode(11010):    @ android.database.sqlite.sqliteopenhelper.getwritabledatabase(sqliteopenhelper.java:164) 11-27 13:08:14.220: d/strictmode(11010):    @ com.project.dc.databases.dbadapter.open(dbadapter.java:224) 11-27 13:08:14.220: d/strictmode(11010):    @ com.project.dc.activity.runformactivity.saveonswipe(runformactivity.java:10641) 11-27 13:08:14.220: d/strictmode(11010):    @ com.project.dc.activity.runformactivity$34.onclick(runformactivity.java:2575) 11-27 13:08:14.220: d/strictmode(11010):    @ android.view.view.performclick(view.java:4438) 11-27 13:08:14.220: d/strictmode(11010):    @ android.view.view$performclick.run(view.java:18422) 11-27 13:08:14.220: d/strictmode(11010):    @ android.os.handler.handlecallback(handler.java:733) 11-27 13:08:14.220: d/strictmode(11010):    @ android.os.handler.dispatchmessage(handler.java:95) 11-27 13:08:14.220: d/strictmode(11010):    @ android.os.looper.loop(looper.java:136) 11-27 13:08:14.220: d/strictmode(11010):    @ android.app.activitythread.main(activitythread.java:5001) 11-27 13:08:14.220: d/strictmode(11010):    @ java.lang.reflect.method.invokenative(native method) 11-27 13:08:14.220: d/strictmode(11010):    @ java.lang.reflect.method.invoke(method.java:515) 11-27 13:08:14.220: d/strictmode(11010):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) 11-27 13:08:14.220: d/strictmode(11010):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) 11-27 13:08:14.220: d/strictmode(11010):    @ dalvik.system.nativestart.main(native method) 

i have getting following strict mode(logcat): http://pastebin.com/jeda0yna

i have depress taking problem: please give idea how fix this.

your application performing database operations on main thread. getting error.

move saveonswipe call in onclick asynctask


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -