Commit fc141071 authored by Luca Tomaino's avatar Luca Tomaino

Update android.md

parent 3372f418
......@@ -307,15 +307,11 @@ public class MainActivity extends Activity {
```java
public class MainActivity extends Activity {
@Override
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestAnalysisConsent();
}
private void requestAnalysisConsent() {
showAnalysisConsentsRequestDialog(this, new AnalysisConsentsListener() {
showAnalysisConsentsRequestDialog(this, new IAnalysisConsentsListener() {
@Override
public void onUserResponse(boolean isGranted) {
// COMMUNICATE THE USER'S RESPONSE TO THE GEOUNIQ SDK
......@@ -324,12 +320,16 @@ public class MainActivity extends Activity {
});
}
private void showAnalysisConsentsRequestDialog(Context context, AnalysisConsentsListener analysisConsentsListener) {
private void showAnalysisConsentsRequestDialog(Context context, IAnalysisConsentsListener analysisConsentsListener) {
// SHOW HERE YOUR CUSTOM DIALOG THAT ASK THE USER FOR ANALYSIS CONSENT
// COMMUNICATE THE USER'S RESPONSE TO THE LISTENER
analysisConsentsListener.onUserResponse(userResponse);
}
}
interface IAnalysisConsentsListener {
public void onUserResponse(boolean isGranted);
}
}
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment