Reputation: 31
I already tried referring both to this StackOverFlow question as well as this tutorial but still have not found a solution to my problem.
I set permissions already in the Android Manifest XML file, and have my webview problem under the FullscreenActivity file. My code is here:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_fullscreen);
WebView view = (WebView) this.findViewById(R.id.webView);
view.setWebViewClient(new WebViewClient());
view.loadUrl("platinumskincare.com");
view.getSettings().setJavaScriptEnabled(true);
mVisible = true;
mControlsView = findViewById(R.id.fullscreen_content_controls);
mContentView = findViewById(R.id.fullscreen_content);
The error I keep getting says 'Cannot Resolve Symbol 'WebViewClient', and I believe it is on line 44 of my code. What should I do and how do I fix this problem?
Upvotes: 0
Views: 4189
Reputation: 789
import android.webkit.WebView;
import android.webkit.WebViewClient;
Upvotes: 1