Skip to content

Commit

Permalink
Run demo app in strictmode.
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Feb 11, 2017
1 parent 20b6874 commit 5109328
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exampleapp/src/main/java/com/piwik/demo/DemoApp.java
Expand Up @@ -7,6 +7,8 @@

package com.piwik.demo;

import android.os.StrictMode;

import org.piwik.sdk.extra.DownloadTracker;
import org.piwik.sdk.extra.PiwikApplication;
import org.piwik.sdk.extra.TrackHelper;
Expand All @@ -28,6 +30,10 @@ public Integer getSiteId() {
@Override
public void onCreate() {
super.onCreate();
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectAll()
.penaltyLog()
.build());
initPiwik();
}

Expand Down

0 comments on commit 5109328

Please sign in to comment.