Skip to content

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.

Note

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.

  1. Navigate to the studio64.exe program file.
  2. Right-click the file, then choose Properties.
  3. From the Compatibility tab, click Change high DPI settings.
  4. Enable Override high DPI scaling behavior.
  5. Choose System from the drop-down list.
  6. Click OK twice to save changes and close the dialog boxes.
  7. Restart Android Studio.

Procedure

  1. 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.

  2. Follow the steps in the Wizard. For details of how to complete each screen, see the following topics:

  3. 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.

Next Steps

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.