Code example for WebView

Methods: getOriginalUrlgetUrl

0
 
    @Override 
    public void onDestroyView() { 
        Log.i(TAG, "SecondFragment Enter onDestroyView");
        super.onDestroyView(); 
        Log.i(TAG, "SecondFragment getUrl=" + mWebview.getUrl());
        Log.i(TAG, "SecondFragment getOriginalUrl=" + mWebview.getOriginalUrl());
        mLastUrl = mWebview.getUrl();
        Log.i(TAG, "SecondFragment Exit  onDestroyView");
    } 
 
    @Override 
    public void onDestroy() { 
        Log.i(TAG, "SecondFragment Enter onDestroy");
        super.onDestroy(); 
        if (mWebview != null) {
            mWebview.destroy();
            mWebview = null;
        } 
        Log.i(TAG, "SecondFragment Exit  onDestroy");
    } 
4
CodeRank