Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | webMethods Mobile Development Help | Creating a Mobile Project | Defining Resources for a Mobile Project | Adding Static Web Resources
 
Adding Static Web Resources
You can add static web resources, such as HTML, JS, CSS files to your mobile project. The UniversalResHandler is responsible for copying those files to the resulting native project or to the Phoney run time. Therefore, all static web resources must be copied to your_project/resources/www. The files can be accessed at run time after running the resource handler. For detailed information, see Using the UniversalResHandler.
You can access every file at run time using the following code snippet:
<Java>
final String content =
AbstractApplicationController.getInstance().loadWWWResource("yourFile");
</Java>
For example, you can store a HTML file and load its content at run time. Afterwards, you can pass the file's content to a WebView object using the method nUIWebView#setHTMLText(String).