Install
Download the Android AAR, rename it todoubledata-proxy.aar, and place it in app/libs/:
Create a client
The SDK includes the DoubleData notice. Set only your app’s connection settings and optional limits:io.doubledata.DoubleDataClient and org.json.JSONObject. Use your application-scoped SDK settings, not an account API key. JSON configuration.
Use the built-in dialog
Render your own screen
Implementio.doubledata.ConsentPresenter:
sharingScreen is your native UI bridge. The SDK calls it on a worker: post UI work to main, display the complete notice with your styling, and return "accept", "decline", or "dismiss" after the person’s choice. cancel() must promptly dismiss and unblock with a nonaccepting result, including when called before the view opens.
Close the session
CallcloseAsync() when the sharing screen leaves the foreground. Await its result off the UI thread before replacing the client.
Complete Activity · Application JSON · Participation flow.