Android - adicionar uma imagem em webview em HTML

Ok, então a imagem que estou usando é chamada test.png e eu tenho uma classe java (Cherry.java) e uma classe xml (cherry.xml). Também tenho um arquivo html na pasta / res / raw chamada htmltest.html . O que eu estou tentando fazer é quando o usuário clica em um botão na página anterior e, em seguida, leva-os para cherry.xml tudo é uma visão da web. Agora, na classe java, apenas abrir o arquivo html e no arquivo html é apenas um layout normal baseado na web. Eu quero exibir imagens no arquivo html para uma imagem que está na pasta drawable ou algo assim sem ter que usar a internet. (não quer que a permissão de internet seja usada). Abaixo está o código para os 3 arquivos que eu tenho.

cherry.xml

<WebView 
    android:id="@+id/webviewHelp"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"  />

Cherry.java

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class Cherry extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.cherry);

        WebView webview = (WebView) findViewById(R.id.webviewHelp);
        webview.loadData(readTextFromResource(R.raw.htmltest), "text/html", "utf-8");   

    }

    private String readTextFromResource(int resourceID)
    {
        InputStream raw = getResources().openRawResource(resourceID);
        ByteArrayOutputStream stream = new ByteArrayOutputStream();
        int i;
        try
        {
            i = raw.read();
        while (i != -1)
        {
            stream.write(i);
            i = raw.read();
        }
        raw.close();
         }
         catch (IOException e)
         {
        e.printStackTrace();
         }
        return stream.toString();
    }



}

htmltest.html

<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

<h2>Pictures</h2>
<img border="0" src="file:///android_drawable/test.png" alt="nothing" width="304" height="228" />

</body>
</html>

Qualquer outra pergunta é só pedir e eu responderei o mais rápido possível. Tudo funciona bem, são apenas as imagens que não consigo exibir.

questionAnswers(4)

yourAnswerToTheQuestion