Android Enable Back Button In Webview
I'm using the following code to display a webview in my Android app. package com.company.myapp; import com.google.android.apps.analytics.GoogleAnalyticsTracker; import android.ap
Solution 1:
Got it! Your problem in this line
WebView webview = new WebView(this);
Instead of using your member variable you are creating a variable inside function, and hence your member variable is null inside onKeyDown function.
Just replace it with
webview = new WebView(this);
Post a Comment for "Android Enable Back Button In Webview"