xref: /aosp_15_r20/external/grpc-grpc-java/examples/android/strictmode/README.md (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1*e07d83d3SAndroid Build Coastguard WorkergRPC Android StrictMode Example
2*e07d83d3SAndroid Build Coastguard Worker========================
3*e07d83d3SAndroid Build Coastguard Worker
4*e07d83d3SAndroid Build Coastguard Worker- This example intends to show the compatibility of gRPC with Android StrictMode.
5*e07d83d3SAndroid Build Coastguard Worker- Android SDK version 28 is required for [`StrictMode.VmPolicy.Builder.penaltyListener`](https://developer.android.com/reference/android/os/StrictMode.VmPolicy.Builder.html#penaltyListener(java.util.concurrent.Executor,%20android.os.StrictMode.OnVmViolationListener)) used in the example.
6*e07d83d3SAndroid Build Coastguard Worker- This example does the same thing as [HelloWorld example](../helloworld) except popping up a dialog for detected StrictMode policy violation (shown below).
7*e07d83d3SAndroid Build Coastguard Worker
8*e07d83d3SAndroid Build Coastguard Worker![demo img](./demo.png)
9