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 in Android by Edureka
• 12,390 points
17 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 in Android by Ashwini
• 2,760 points
20 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 in Android by Edureka
• 12,390 points
44 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 in Android by Edureka
• 10,880 points
48 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 in Android by Edureka
• 12,390 points
55 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 in Android by Edureka
• 10,880 points
21 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 in Android by Edureka
• 10,880 points
43 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 in Others by polo
• 1,480 points
963 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 in Others by nisha
• 2,190 points
2,175 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 in Android by Edureka
• 12,390 points
8 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,350 points
3,027 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