Top "Android-strictmode" questions

This mode helps a developer to identify potential bugs in an app.

A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks

i am getting this message in logcat A resource was acquired at attached stack trace but never released. See java.…

android android-strictmode
Should accessing SharedPreferences be done off the UI Thread?

With the release of Gingerbread, I have been experimenting with some of the new API's, one of them being StrictMode. …

android sharedpreferences android-strictmode
Finding what violated StrictMode policy

I've enabled StrictMode in my app and it's causing a few crashes as expected. How can I find out where …

android android-strictmode
Android StrictMode InstanceCountViolation

I am running my app with StrictMode activated in development as documented here StrictMode for lower platform versions and noticed …

android android-strictmode
Strict mode in android 2.2

I have target sdk set as 3.2 and min sdk as 2.2, how can I use strictmode in my application, as I …

android android-strictmode
Android Honeycomb: NetworkOnMainThreadException even when using AsyncTask and no strict mode?

I run into a NetworkOnMainThreadException with my Android 3.0 app. Searching for a solution I found this, but if I understand …

android android-asynctask android-3.0-honeycomb android-strictmode
StrictMode java.lang.Throwable: Untagged socket detected

With StrictMode enabled I just started getting this exception: java.lang.Throwable: Untagged socket detected; use TrafficStats.setThreadSocketTag() to track …

android android-trafficstats android-strictmode
StrictMode for lower platform versions

I have started using the Android StrictMode and find that it would be great to have it always running during …

android android-strictmode
DropBoxManager use cases?

I noticed that a DropBoxManager has been introduced in Android API since FroYo (API 8). It looks like an alternative logger …

android android-2.2-froyo android-strictmode