view-source of a web link in android

0 votes

I trying to load "view-source:http://goo.gl/lEYQQf" link in webview. If I load this link in google chrome from PC, the link changes into this "view-

I need this access token. I have tried this code:

    wv = (WebView) findViewById(R.id.webView);
    wv.getSettings().setJavaScriptEnabled(true);
    wv.getSettings().setLoadWithOverviewMode(true);
    wv.getSettings().setUseWideViewPort(true);
    wv.setWebViewClient(new WebViewClient() {
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return true;
        }

        @Override
        public void onPageFinished(WebView view, final String url) {
            Log.e("testing", url);
        }
    });
    wv.loadUrl("view-source:http://goo.gl/lEYQQf");

The URL isn't loading as a result. When I take off the "view-source:" portion of the given url, I get another link in the output that does not include the access token. I have attempted two additional methods, but I am unable to obtain that token. How do I obtain it?

Nov 17, 2022 in Android by Edureka
• 13,620 points
529 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Android

0 votes
0 answers

How purple 200/500/700 define in the color.xml of a new Android Project?

A new Android project provides a set ...READ MORE

Nov 23, 2022 in Android by Ashwini
• 5,430 points
1,818 views
0 votes
0 answers

How to make grid view scroll horizontally not vertically in android?

I use a flexible Grid View. means ...READ MORE

Sep 21, 2022 in Android by Edureka
• 13,620 points
300 views
0 votes
1 answer

Open Contact information in Contact List using Phone Number of Contact Android Studio

You must first obtain the contact's CONTACT ...READ MORE

answered Nov 7, 2022 in Android by Edureka
• 12,690 points
760 views
0 votes
1 answer

What is the purpose of setImageResource() in Android?

setImageResource(): Use a resource id to set the ...READ MORE

answered Nov 8, 2022 in Android by Edureka
• 13,620 points
1,215 views
0 votes
0 answers

How do I open any app from my web browser (Chrome) in Android?

I want to use my web browser ...READ MORE

Nov 16, 2022 in Android by Edureka
• 12,690 points
429 views
0 votes
0 answers

How to define a circle shape in an Android XML drawable file?

I'm having some trouble locating the Android ...READ MORE

Nov 22, 2022 in Android by Edureka
• 12,690 points
1,876 views
0 votes
1 answer

How can I open a URL in Android's web browser from my application?

ry this: Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri ...READ MORE

answered Jun 14, 2022 in Others by polo
• 1,480 points
4,366 views
0 votes
1 answer

Android Webview net::ERR_UNKNOWN_URL_SCHEME Error To Play Store

Code to Fix err_unknown_url_scheme intent:// webview.setWebViewClient(new WebViewClient() { ...READ MORE

answered Jun 9, 2022 in Others by nisha
• 2,210 points
4,640 views
0 votes
0 answers

App is misconfigured for Facebook login: Android Facebook integration issue

I've linked Facebook with my app, and ...READ MORE

Nov 25, 2022 in Android by Edureka
• 13,620 points
309 views
0 votes
1 answer

Running docker on Android

According to the documentation, the Android kernel is ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,360 points
3,489 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP