언어 설정

Menu
Sites
Language
How to load locally stored *.html files in WebView

Hi all,
Is there special api in Tizen to load locally stored html file ( for example path inside my project is: ./data/index.html ) or should I compose file path manually and use Tizen::Web::Controls::Web::LoadUrl api?

Alexey.

Responses

3 댓글
Kamil N

Alexey,

 

this works for me:

__webControl->LoadUrl(
                "file://" + App::GetInstance()->GetAppRootPath()
                        + "data/Page.html");

Kamil

kimi

Hi,

As of now, there are no specific API's to do that. We have to provide the file path.

Kimi.

Alex Dem

Thank you all for responses!
I found that compose URL this way is better even:
L"file://"+App::GetInstance()->GetAppDataPath() + L"index.html"
Alexey.