Menu
Sites
Language
webview

Hi I am facing problem in displaying a webview on my native app.

 

I dragged the control on native Ui builder and then accessed it inside AppMainForm::OnInitializing function.

and did following 

Tizen::Web::Controls::Web* __pWeb = static_cast<Web*>(GetControl(L"IDC_WEB1"));

if(__pWeb != null)

{

__pWeb->LoadUrl(L"file:///opt/usr/apps/1kPHWWOm9D/res/indexone.html");

 

}

 

1kPHWWOm9D is the id I took from manifest file. 

 

What must be going wrong.

 

Edited on 18 03, 2014

Responses

6 Replies
 dhirku
nothing looks wrong here .... the control shall be displayed and the page shall load. You can try creating the the web control by code also ..... just to check Very important thing ..... do not hard code the file path ..... use Tizen::App::App::GetAppResourcePath(...) method.
Pushpa G
@aas2013: I tried your code, it was diaplying the web view after creating it in the Native UI builder form. But i tried with __pWeb->LoadUrl(L"http://www.tizen.org"); So i guess you better use use Tizen::App::App::GetAppResourcePath(...) method to give the path you wanted here and then try loading it in the web
Pushpa G
displaying*
Jerald Connelly

Do you like to play shooting games? Vampire Survivors will probably be a great game for you ^^.

William Thompson

Check for any error messages or exceptions that are being logged. You can use logging or debugging techniques ovo game specific to the Tizen platform to get more information about the issue.

Bekean Pinky

The actionable steps for goal-setting are pragmatic and effective. It's not just theory; it's a blueprint for success.