Running the Wizard
Launch the Wizard and follow the prompts to create a starter app configured with connections to the SAP Cloud Platform and OData services. You can also use the Wizard to enable features such as logging and push notifications on your generated app.
You require an SAP Cloud Platform account with administrator privileges to create or edit configuration settings on the SAP Cloud Platform. If your account does not have administrator privileges, Wizard controls requiring full permissions are unavailable. See the Wizard screen topics for more information about account restrictions.
The Wizard may not render properly on Windows devices if the DPI for your screen resolution is not set to 100%. To fix this problem, set Android Studio to override high DPI scaling behavior.
- Navigate to the
- Right-click the file, then choose Properties.
- From the Compatibility tab, click Change high DPI settings.
- Enable Override high DPI scaling behavior.
- Choose System from the drop-down list.
- Click OK twice to save changes and close the dialog boxes.
- Restart Android Studio.
From the Android Studio Welcome screen, select Start a new SAP Cloud Platform Android project.
You can also start the Wizard by opening Android Studio and selecting File > New > New SAP Cloud Platform Android project.
Follow the steps in the Wizard. For details of how to complete each screen, see the following topics:
Click Finish to generate the new app.
The generated application opens in Android Studio. It starts with a Welcome screen followed by the onboarding or Logon screen. After a successful logon, the application lists the OData Service collections that are available. You can select each entity to see its details.
The Wizard automatically generates hundreds of lines of source code. For example, it uses the OData service definition to generate specific functions and calls to retrieve data from the SAP Cloud Platform Mobile Services for each entity type, allowing the application to communicate with the back-end system using only the generated code. As a part of project generation, the wizard also generates a WizardAppReadme file that provides an overview of the generated application and its architecture.
See also The Generated Application for more information.
Once you've generated your app, customize it as required. You can also configure and administer your app from the SAP Cloud Platform Mobile Services cockpit as needed, particularly for features that are not configured by the Wizard, such as offline application configuration.