BluetoothDemo
所属分类:J2ME
开发工具:Java
文件大小:210KB
下载次数:15
上传日期:2011-07-29 09:51:55
上 传 者:
feng_zheng
说明: 手机蓝牙通讯,实现两个手机传输图片的功能
(Bluetooth mobile phone communications)
文件列表:
BluetoothDemo (0, 2011-07-07)
BluetoothDemo\bin (0, 2011-07-07)
BluetoothDemo\bin\BluetoothDemo.jad (638, 2007-10-02)
BluetoothDemo\bin\BluetoothDemo.jar (79484, 2007-10-02)
BluetoothDemo\bin\MANIFEST.MF (422, 2007-10-02)
BluetoothDemo\classes (0, 2011-07-07)
BluetoothDemo\classes\example (0, 2011-07-07)
BluetoothDemo\classes\example\bluetooth (0, 2011-07-07)
BluetoothDemo\classes\example\bluetooth\demo (0, 2011-07-07)
BluetoothDemo\classes\example\bluetooth\demo\BTImageClient.class (9747, 2007-10-02)
BluetoothDemo\classes\example\bluetooth\demo\BTImageServer$ClientProcessor.class (2388, 2007-10-02)
BluetoothDemo\classes\example\bluetooth\demo\BTImageServer.class (6429, 2007-10-02)
BluetoothDemo\classes\example\bluetooth\demo\DemoMIDlet.class (2515, 2007-10-02)
BluetoothDemo\classes\example\bluetooth\demo\GUIImageClient.class (4872, 2007-10-02)
BluetoothDemo\classes\example\bluetooth\demo\GUIImageServer.class (5742, 2007-10-02)
BluetoothDemo\docs (0, 2011-07-07)
BluetoothDemo\docs\allclasses-frame.html (1270, 2007-10-02)
BluetoothDemo\docs\allclasses-noframe.html (1170, 2007-10-02)
BluetoothDemo\docs\constant-values.html (5295, 2007-10-02)
BluetoothDemo\docs\deprecated-list.html (4212, 2007-10-02)
BluetoothDemo\docs\example (0, 2011-07-07)
BluetoothDemo\docs\example\bluetooth (0, 2011-07-07)
BluetoothDemo\docs\example\bluetooth\demo (0, 2011-07-07)
BluetoothDemo\docs\example\bluetooth\demo\BTImageClient.html (17559, 2007-10-02)
BluetoothDemo\docs\example\bluetooth\demo\BTImageServer.html (11505, 2007-10-02)
BluetoothDemo\docs\example\bluetooth\demo\DemoMIDlet.html (15529, 2007-10-02)
BluetoothDemo\docs\example\bluetooth\demo\GUIImageClient.html (14839, 2007-10-02)
BluetoothDemo\docs\example\bluetooth\demo\GUIImageServer.html (12377, 2007-10-02)
BluetoothDemo\docs\example\bluetooth\demo\package-frame.html (1388, 2007-10-02)
BluetoothDemo\docs\example\bluetooth\demo\package-summary.html (6386, 2007-10-02)
BluetoothDemo\docs\example\bluetooth\demo\package-tree.html (5619, 2007-10-02)
BluetoothDemo\docs\index.html (1267, 2007-10-02)
BluetoothDemo\docs\overview-tree.html (5498, 2007-10-02)
BluetoothDemo\docs\package-list (24, 2007-10-02)
BluetoothDemo\docs\resources (0, 2011-07-07)
BluetoothDemo\docs\resources\inherit.gif (57, 2007-10-02)
BluetoothDemo\docs\stylesheet.css (1231, 2007-10-02)
BluetoothDemo\lib (0, 2011-07-07)
BluetoothDemo\project.properties (105, 2007-10-02)
... ...
--------------------------------------------------------------------------------
Bluetooth API (JSR 82 API) Demostration
--------------------------------------------------------------------------------
1. Introduction
Bluetooth Demo - allows to exchange pictures between phones.
It's intended to be run on two or more phones.
2. Bluetooth Demo
2.1 The demo consist in 2 parts - client and server. You may run several
clients or servers if you want.
2.2 If you run the server, the bluetooth notifier is created (so you may be
asked with security question) and it is accepting the clients
already. The corresponding service record contains the attribute with
the published images information.
By default no images are published!
Use "Publish image" and "Remove image" commands in MIDlet menu to
add/remove the corresponding images information to/from service record.
The published images are highlighted in the selection list.
2.3 If you run the client and bluetooth system is initialized successfully,
you see the "Ready for images search!" message. Select "Find" command
to start a search.
In fact, such a search includes both device and service
discovering. The device search is done for PREKNOWN and CACHED devices
too.
You may cancel the device/service search - then you get the main client
display.
Select the image you want to download and choose "Load" command. You
may cancel the image download. After you review the image, go back to
found images list to choose another image to be download or to return
back to new images each.
2.4 The server is created with the URL, that indicates each connected
client should be AUTHORIZED.
I.e. when client is downloading the image, the corresponding server
phone shows user the security dialog with remote device friendly name
(if it is available) and bluetooth address.
2.5 If several servers published the same images, the "union" list is shown
on the client as a search result. This application hides the
information from user what server (bluetooth device) publish these
images.
Still, all of the available sources (servers) for the image are stored
in the client application. When user chooses to download image, the
first source is attempted. In case of I/O error, next source is used
and so on.
After the images search and before the image download the server may
shutdown or just "Remove image" from published list. In this case the
client fails to download image from this server.
3. Required APIs
JSR 30 - Connected Limited Device Configuration (CLDC) 1.0
JSR 118 - Mobile Information Device Profile (MIDP) 2.0
JSR 82 - Java APIs for Bluetooth
近期下载者:
相关文件:
收藏者: