I recently make a WebView App for my website and i have a few versions of it but i like this the best. On the tutorial guy video, it all works 100% Great but on mine tho, theres tons and tons of errors that i had resoved. Now one left, the app crashes every single time i tried to start it. It will show for 2 seconds and then closed.
Here's the stack trace :
08-21 20:32:52.060 3149-3149/app.gonenjoy.com E/AndroidRuntime: FATAL EXCEPTION: main
Process: app.gonenjoy.com, PID: 3149
java.lang.NullPointerException
at app.gonenjoy.com.MainActivity$MyWebviewClient.onPageFinished(MainActivity.java:160)
at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:449)
at com.android.org.chromium.android_webview.AwContentsClient$AwWebContentsObserver$1.run(AwContentsClient.java:73)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5641)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1288)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1104)
at dalvik.system.NativeStart.main(Native Method)
Any help is apriciated.
Tested on Bluestacks & Samsung galaxy young 2 Android Studio v2.3