ServiceAbility

Introduction

This sample shows how to create and use a Service ability in eTS.

Usage

  1. After the sample app is started, touch Connect service. When the Service ability is connected, a message is displayed.

  2. Enter a string in the text box on the screen and touch Sort string. The string is sent to the Service ability. The Service ability sorts the string and returns the string after sorting, which is then displayed in the text box

  3. Click Disconnect service. After the Service ability is disconnected, a message is displayed.

Constraints

This sample can only be run on standard-system devices.