Code example for WebView

Methods: getOriginalUrlgetUrl

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