Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8897315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:18:32+00:00 2026-06-15T00:18:32+00:00

I am trying to create a webview but it’s not showing up when I

  • 0

I am trying to create a webview but it’s not showing up when I am running it.Can you help please.

The error I am having:

11-16 16:30:23.043: E/AndroidRuntime(1709): FATAL EXCEPTION: main
11-16 16:30:23.043: E/AndroidRuntime(1709): java.lang.RuntimeException: Unable to      start activity ComponentInfo{com.example.intents/com.example.intents.MyBrowserActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class webView

11-16 16:30:23.043: E/AndroidRuntime(1709): at Android.app.ActivityThread.performLaunchActivity(ActivityThread.Java:2059)
11-16 16:30:23.043: E/AndroidRuntime(1709): at Android.app.ActivityThread.handleLaunchActivity(ActivityThread.Java:2084)

This is my manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.intents"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
 android:minSdkVersion="8"
 android:targetSdkVersion="15" />
 <uses-permission android:name="android.permission.CALL_PHONE"/>
 <uses-permission android:name="android.permission.INTERNET"/>

 <activity
  android:name=".MyBrowserActivity"
  android:label="@string/app_name" >

  <intent-filter>
  <action android:name="android.intent.action.VIEW" />
   <action android:name="com.example.MyBrowser" />

   <category android:name="android.intent.category.DEFAULT" />
   <data android:scheme="http"/>
   </intent-filter>
   </activity>

Main Activity:

Button But4 = (Button)findViewById(R.id.btn_launchMyBrowser);
 But4.setOnClickListener(new View.OnClickListener(){

    public void onClick(View v) {
        // TODO Auto-generated method stub
        Intent i = new Intent("com.example.MyBrowser");
        i.setData(Uri.parse("http://www.amazon.com"));
        startActivity(i);


    }


 });

My Intent Activity:

           Uri url = getIntent().getData();
    WebView webView = (WebView)findViewById(R.id.WebView01);
    webView.setWebViewClient(new Callback());
    webView.loadUrl(url.toString());
}
private class Callback extends WebViewClient {
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url){
        return (false);
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:18:34+00:00Added an answer on June 15, 2026 at 12:18 am

    Error inflating class webView

    My guess is that you typed webViewin your layout file instead of WebView.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying to create a ListView with a Webview inside, but the app shows
I am trying to create a webview in adroid with private browsing enabled. public
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Trying to create a black line in my view to separate text blocks but
Trying to create a new Dedicated Cache Role in Windows Azure but get the
Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
Trying to create a macro which can be used for print debug messages when
Trying to create a background-image slideshow and am getting this error... This is the
I am trying to create a list view which as TextView that can display
In my WebView am trying to download some files from some web sites but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.