title: Image is not loading for html format in webview android
body: <p>Have created a functionality when user clicks on the image thumbnail, the main image will load by calling on the <code>WebView.loadurl(String.format())</code> method, the selected image will then be uploaded and displayed for the user to view. However, in this instances, when user clicks on the image thumbnail, the following message is displayed:</p>
  
  <blockquote>
    <p>The requested URL /projectname_uat/data/images/property/property_id/360/1/index.htm is not found on this server.</p>
  </blockquote>
  
  <p>What has gone wrong in that instances?</p>
  
  <p>Furthermore, when I copied the following url into a web browser: Google Chrome, it wasn't showing initially, however when I made the following changes, the images was showing in the web browser but not on the app device. What I do understand is that there is no difference between htm or html, and most the images that can be displayed are either in htm or html.</p>
  
  <p>the following change that I have made, which is to change htm to html:</p>
  
  <blockquote>
    <p>/projectname_uat/data/images/property/property_id/360/1/index.<strong>html</strong></p>
  </blockquote>
  
  <p>Could anyone offer any assistance to this issue?? It has been bogging my mind for a couple of days and it is getting frustrating. Thanks in advance.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>int img_id = 1;
  photoPb = (ProgressBar) findViewById(R.id.photoPb);
      photoPb.setVisibility(View.INVISIBLE);
      webView = (WebView) findViewById(R.id.webview01);
      webView.getSettings().setJavaScriptEnabled(true);
      //webView.getSettings().setPluginsEnabled(true);
      webView.getSettings().setPluginState(PluginState.ON);
      webView.setVerticalScrollBarEnabled(false);
      webView.setHorizontalScrollBarEnabled(false);
      webView.setWebViewClient(new WebViewClient() {
          public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
              Toast.makeText(getContext(), description, Toast.LENGTH_SHORT).show();
          }
      });
   if (panoSize &gt; 0) {
          g = (Gallery) findViewById(R.id.gallery01);
          g.setAdapter(new ImageAdapter());
          int pad = 15;
          g.setSpacing(1);
          g.setUnselectedAlpha(255);
          g.setPadding(pad, 10, pad, pad);
          g.setOnItemClickListener(new OnItemClickListener() {
              public void onItemClick(AdapterView&lt;?&gt; parent, View v, int position, long id) {
                  img_id = position;
                  setImageShade(position);
                  captionText.setText(caption[position]);
                  Log.i("PropertyPanoramaActvity:if(panoSize&gt;0)","******webView.loadUrl******"+getString(R.string.app_360_domain)+getString(R.string.app_360_property)+(getIntent().getIntExtra("propertyId", 0))+getString(R.string.app_360_directory)+(img_id)+getString(R.string.app_360_index));
                  //webView.loadUrl(String.format("https://developer.dapoltd.com/spacetobe_uat/data/images/property/property107/360/4/index.htm", id, img_id));
                  webView.loadUrl(String.format(getString(R.string.app_360_domain)+getString(R.string.app_360_property)+(getIntent().getIntExtra("propertyId", 0))+getString(R.string.app_360_directory)+(img_id)+getString(R.string.app_360_index)));
  
  
              }
          });
      }
  </code></pre>
  
  <p>String.XML:</p>
  
  <pre><code>&lt;string name="app_360_domain"&gt;https://developer.dapoltd.com/spacetobe_uat/&lt;/string&gt;
  &lt;string name="app_360_property"&gt;data/images/property/property&lt;/string&gt;
  &lt;string name="app_360_directory"&gt;/360/&lt;/string&gt;
  &lt;string name="app_360_index"&gt;/index.htm&lt;/string&gt;
  </code></pre>