import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
* Click handler to call when the user clicks on the menu item/link
* that should open the Preference Center
* We assume that you have a WebView created with ID preferenceCenterWebView
* and the correct Internet permissions as per https://developer.android.com/guide/webapps/webview.html
public void preferenceCenterClickHandler(View view) {
String preferenceCenterURL = ...; // Get the Preference Center URL as described above
WebView preferenceCenterWebView = (WebView) findViewById(R.id.preferenceCenterWebView);
// Ensure that the user stays in the WebView when he navigates
preferenceCenterWebView.setWebViewClient(new WebViewClient());
preferenceCenterWebView.getSettings().setJavaScriptEnabled(true);
preferenceCenterWebView.loadUrl(preferenceCenterURL);
// TODO: Actually show the WebView here