My problem is this, I'm trying to understand the source of this trace:
11-06 22:07:36.593 2744-3492/com.spot.spottester W/f: Suppressed StrictMode policy violation: StrictModeDiskReadViolation
11-06 22:07:36.594 2744-2744/com.spot.spottester W/f: Suppressed StrictMode policy violation: StrictModeDiskReadViolation
I got these StrictMode lines appearing on my Android Studio logcat every time I rotate screen from portrait to landscape and viceversa. I dont understand why logcat indicates "Suppressed" because I think StrictMode is activated in my main Activity (the only one)
@Override
protected void onCreate(Bundle savedInstanceState) {
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
.detectAll()
.penaltyLog()
.build());
Additional information: I see this strict mode violations when Im working with maps, map fragment on FrameLayout
<FrameLayout
android:id="@+id/mapContainer"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_gravity="center_horizontal"
android:layout_weight="0.35">
<fragment
android:id="@+id/mapFragment"
class="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</FrameLayout>
Additional lines of logcat
11-07 08:47:39.495 32751-4156/com.spot.spottester I/dalvikvm-heap: Grow heap (frag case) to 15.568MB for 196624-byte allocation
11-07 08:47:40.217 32751-32751/com.spot.spottester I/Google Maps Android API: Google Play services package version: 9877036
Thanks you all!