Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 3.19 KB

README.md

File metadata and controls

60 lines (41 loc) · 3.19 KB

Android Samples

Basic Requirements

  • Java™ 11 or later
  • Android™ 13.0 (api level 33) SDK platform

Note: The Android-specific requirements can be changed by editing the build.gradle file of the particular sample.

Environment Setup

Before running these samples, they need to know where both the Android SDK and DashO™ are located.

Note: If you import a sample into Android Studio, make sure that Instant Run is disabled so that the sample will work correctly.

Android SDK

Set sdk.dir in local.properties to the location of the Android SDK. It can also be set via an environment variable.

Note: You will need to create the local.properties file. It should exist in the same directory as the gradle.properties file.

DashO

If PreEmptive Protection™ DashO is installed in the default location, the DashO Gradle Plugin for Android will find DashO automatically, and no explicit configuration is necessary. Otherwise, see documentation for the DashO Gradle Plugin for Android for details about setting DashO Home.

Samples

Running the Samples

Most samples have the same basic functionality.

sample

The main screen allows selection of the Random Generator or the Fibonacci Calculator. The Random Generator generates and displays a random number in a configured range. The Fibonacci Calculator calculates and displays a number in the Fibonacci sequence. The samples for Checks and Responses attach additional behavior to the Generate and Calculate actions. When the Check is triggered, those areas of the application will not work properly.

Notification

Each of the sample apps is designed to detect certain configuration issues. In the case that something does go wrong, a message will be displayed in a toast whenever either the Random Generator or Fibonacci Calculator are selected from the main activity. If you see these messages unexpectedly, please review the README.md for the sample and review any changes you may have made to the configuration.

Android is a trademark of Google Inc.
Java is a registered trademark of Oracle and/or its affiliates.
Kotlin is a trademark of the Kotlin Foundation.