/** * Display a page in the WebView of this moblet. * @param url Url of page to open. */ void HybridMoblet::showPage(const MAUtil::String& url) { // Extract files system and perform other initialisation. initialize(); // Make the main WebView visible. getWebView()->setVisible(true); // Show the WebView screen. showWebView(); // Open the page. getWebView()->openURL(url); }
/** * Display a page in the WebView of this moblet. * @param url Url of page to open. */ void WebAppMoblet::showPage(const MAUtil::String& url) { // Since extractFileSystem() is moved out of the constructor // into application code, make sure it has been called before // displaying the page. This makes the code updates backwards // compatible with old application code. if (!mFileSystemIsExtracted) { extractFileSystem(); } // Make sure the WebView is displayed. // It should do no harm to call this method multiple times. showWebView(); // Open the page. getWebView()->openURL(url); }