Cant see StrictMode information about logcat - violation of StrictMode policy on rotation screen

My problem is that I am 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 logarithm every time I rotate the screen from portrait to landscape and vice versa. I don’t understand why logcat indicates β€œSuppressed” because I think that StrictMode is activated in my main activity (only one).

@Override
protected void onCreate(Bundle savedInstanceState) {

    StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
            .detectAll()
            .penaltyLog()
            .build());

Additional information: I see this violation of strict mode when Im working with maps, a fragment of the map 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 logcat lines

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 everyone!

+4
source share
1

UPDATE: Google Play Services 10.2.0:

! Google Play Services 10.2 ​​, - " StrictMode: StrictModeDiskReadViolation". APK Google Play, .

https://code.google.com/p/gmaps-api-issues/issues/detail?id=11077


: " StrictMode" logcat - Google Maps. , StrictMode , .

, Google , :

​​ Google Play Services 9.8. StrictMode API Android Maps , StrictMode .

https://code.google.com/p/gmaps-api-issues/issues/detail?id=10170

, "" , "" ... .

+4

Source: https://habr.com/ru/post/1660062/


All Articles