use of net.wigle.wigleandroid.background.WiGLERegistrationInterface in project wigle-wifi-wardriving by wiglenet.
the class RegistrationActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_registration);
WebView regWebView = (WebView) findViewById(R.id.wigle_registration_container);
WebSettings webSettings = regWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
regWebView.clearCache(true);
clearCookies(MainActivity.getMainActivity().getApplicationContext());
regWebView.setWebChromeClient(new WebChromeClient());
regWebView.getSettings().setUserAgentString(AGENT);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
WebView.setWebContentsDebuggingEnabled(true);
}
regWebView.addJavascriptInterface(new WiGLERegistrationInterface(this), "WiGLEWiFi");
regWebView.loadUrl(MainActivity.REG_URL);
}
Aggregations