Mobile Control Midlet (MobCon)
The Mobile Control Midlet is a J2ME application to allow remote control of pc application. It connects to a remote pc running the
MobileControl Application, reads configuration data from it and enables the user to send command s to the pc using the configuration data.
The midlet is part of the
MobileControl mini suite.
Requirements
- Device featuring J2ME MIDP2.0 with Bluetooth API (JSR-82) support (tested on Nokia 6230)
- Correct Setup of MobileControl Application
Installation
Extras
The MobCon source file package in
MobileControl contains also a TestMidlet which demonstrates the usage of the Bluetooth API. In addition it contains SerialConnection classes which encapsulate message exchange via bluetooth. These classes can be used as base classes or examples to incorporate them into other Midlets to ease bluetooth connection handling.
Usage
The MobCon midlet consists of mainly four screens:
- MobCon Main Menu
- Devices search
- Application selection
- Actions invocation
MobCon Main Menu
Select
Search Device to start a new device search. If a connection to a Device was stored from a previous session, it is available as item
Connect to DeviceName . The mobile itself might prompt you to allow network (bluetooth) access after selection.
Devices search
The midlet tries to find BT devices within the neighborhood. When search is finished, found devices are displayed and can be selected. After selection, the midlet queries the appropriate Serial Profile service on the device. If successful, the midlet will try to contact the
MobileControl Application and query it for available applications. That process can be aborted by pressing
break on the progress screen.
Application selection
If the midlet recieved information from the
MobileControl Application, it displays the configured application names. Selecting an application from the list again queries the action-list for that application.
Actions invocation
After recieving the configured action commands from the
MobileControl Application, the midlet tries to get the current window title of the selected application, which then will be displayed as a ticker. If that fails because the selected application was not started or recognized by the
MobileControl Application, the ticker will display an error message. In that case the
MobileControl Application will reconfigure itself, so you can retry your command.
Selecting an action sends that action to the
MobileControl Application and will recieve the current window title as response, which will update the ticker row.
Change Log
Version 1.1
- Code Review
- Added midlet icon and about box
Version 1.0
- Initial Version, first build