How to load local images or html on WebView

How to load local images or html on WebView

BY 11 Mar 2013 Native Application Development

I want to load html file or images on WebView which is stored on local path like

   ‘/opt/apps/{app id}/data/test.html’

   ‘/opt/apps/{app id}/res/test.html’

In Bada forum, I found that the local path ‘/Home’ or ‘/Res’ are used to do it.
 
Tizen::Web::Controls::Web* pWeb = new Tizen::Web::Controls::Web();
pWeb->Construct(Rectangle(0, 0, GetWidth(), GetHeight()));
AddControl(*pWeb);
pWeb->LoadUrl(L”/Home/test.html”);

 

When I tried like that, WebView shows dialog box.

==================================
   Select Application
——————————————–
   Email
   Bluetooth
                              Cancel
 ==================================
 
Thanks in advace.
 
Written by