Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Overview

The Simple Mock example shows the implementation of SNI natives using the Mock Framework.

The example implements a random value generator which bounds can be set with a bounds setter widget.

The number generation can be enabled/disabled with a checkbox widget.

Example_screenshot.png

This module contains the application part of the example.

Requirements

This example has been tested on:

Usage

Open the Example-Mock-Framework project in Android Studio.

Make sure to properly setup the VEE Port.

By default, the sample will use the STM32F7508-DK VEE Port.

Run the example on Simulator

In Android Studio:

  • Open the Gradle tool window by clicking on the elephant icon on the right side,
  • Expand the simple-app > Tasks > microej lists,
  • Double-click on runOnSimulator,
  • The application starts, the traces are visible in the Run view.

Alternative ways to run in simulation are described in the Run on Simulator documentation.

Play with the example

  • The random number generator can be enabled/disabled either by clicking on the simulated device display or by clicking on the mock's enabled checkbox.
  • The bounds of the generated number can be set using the bounds setter widget.

Dependencies

All dependencies are retrieved transitively by Gradle.

Source

N/A.

Restrictions

None.


Markdown
Copyright 2024 MicroEJ Corp. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found with this software.