Skip to Content

Get Familiar with the Flows Component by a Wizard-Generated Application

Understand the capabilities and usage of the Flows component using the application generated by SAP BTP SDK Wizard for Android.
You will learn
  • How to import the Flows component into the application project
  • How the Flows APIs are used in wizard-generated applications
  • Which screens are provided by the Flows component
FengHaoyueHaoyue FengMarch 27, 2024
Created by
sandeep-tds
January 9, 2023
Contributors
sandeep-tds
FengHaoyue

Prerequisites

The Flows component is a new feature of the SAP BTP SDK for Android as of version 3.1 and new features are continually added to the library. The Flows component can reduce and simplify the application code related to the onboarding process, passcode management, and restore and reset scenarios. In addition to providing a default implementation, it also supports options for UI customization and extension points for client code to contribute customized logic. See Onboarding Using the Flow Component of the SAP SDK for Android for an overview.

  • Step 1
    1. Open the project you previously created using the SAP BTP SDK Wizard for Android.

    2. Press Shift twice and type build.gradle to open the build.gradle file of the app module.

    3. Go to the dependencies section and find the dependency declaration to the Flows component. onboarding contains the UI screens and flowsv2 contains the Flows API and logic.

      App gradle file

    Which dependencies are required to use the Flows component?

  • Step 2
  • Step 3
    1. The Flows component provides the required UI screens for the onboarding process and passcode management, including the end user license agreement (EULA) screen for the user to understand and agree to the terms of using the app, the QR scan screen to get the application configuration, the sign-in screen for user authentication, and passcode screens for the user to create and confirm their passcode.

    2. There are different combinations of the screens depending on the different application configuration and user options in the FlowContext instance. The following sequence of screens demonstrate the onboarding process of the project previously generated by the wizard. The details for how to customize the screens and include or exclude a screen in a flow will be explained in subsequent tutorials.

      Onboarding steps screen

    Congratulations! You now understand the basic concepts of the Flows component and have examined its usage in the project created using the SAP BTP SDK Wizard for Android!

Back to top