Add LaunchBrowser support

This commit is contained in:
Joshua Granick
2013-12-03 23:46:47 -08:00
parent 5999d4fefb
commit c4b5fbe062
2 changed files with 17 additions and 7 deletions

View File

@@ -99,13 +99,6 @@ namespace lime {
}
bool LaunchBrowser (const char *inUtf8URL) {
return false;
}
}

View File

@@ -413,6 +413,23 @@ namespace lime {
}
bool LaunchBrowser (const char *inUtf8URL) {
Tizen::Base::String uri = Tizen::Base::String(inUtf8URL);
Tizen::App::AppControl* pAc = Tizen::App::AppManager::FindAppControlN (L"tizen.internet", L"http://tizen.org/appcontrol/operation/view");
if (pAc) {
pAc->Start (&uri, null, null, null);
delete pAc;
}
return true;
}
bool SetUserPreference (const char *inId, const char *inPreference) {
result r = E_SUCCESS;