Show TOC

Initialize the Mobile AppLocate this document in the navigation structure

The sap.m library provides a control called App which is meant to be the root control of a mobile application. It provides the initialization of the HTML page, sets some meta tags to ensure an as-native-as-possible look&feel, and can manage different pages and the animations between them.

Procedure

Create the control and define the page that you want to display first:
  
  // create a mobile App
  // it initializes the HTML page for mobile use and provides animated page handling
    var oApp = new sap.m.App("myApp", {initialPage:"page1"}); 
  // page1 should be displayed first
  • Instead of using the App control, you can also use jQuery.sap.initMobile() to set up the HTML and use other full screen controls, such as sap.m.Page or sap.m.Carousel as root element of your app.