Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (35 sloc) 2.55 KB

Android™ Samples

Basic Requirements

  • Java 1.8
  • Android 9.0 (api 28) 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, you should make sure Instant Run is disabled so 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

Set DASHO_HOME in gradle.properties to the location of DashO. It can also be passed via the command line: -PDASHO_HOME={DashO's Installation Directory}, or set via an environment variable named ORG_GRADLE_PROJECT_DASHO_HOME.

Samples

Running the Samples

The included 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. TheFibonacci 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.

Copyright 2018 PreEmptive Solutions, LLC.

Android is a trademark of Google Inc.

You can’t perform that action at this time.