Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Overview

The File Chooser Mock example shows the use of file chooser widget and the reading of a CSV file using the Mock Framework.

The example implements a file chooser widget, buttons to start/reset/stop the value reading and a file reading status label.

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 file-chooser-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

  • Select a file with the Select file... button. An example file is available in the src/main/resources folder.
  • Click on the Start button. The application will start reading the data provided by the CSV file and logging it to the console.
  • Click on the Reset button to start reading from the beginning of the file.
  • Click on the Stop button to stop reading the data.

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.