ObexDemo
所属分类:J2ME
开发工具:Java
文件大小:194KB
下载次数:28
上传日期:2005-03-01 14:25:43
上 传 者:
alifafa
说明: 手机游戏动画制作 共初学者参考
(mobile gaming animation reference to a total beginners)
文件列表:
ObexDemo\lib (0, 2005-02-03)
ObexDemo\bin\ObexDemo.jar (74181, 2004-10-27)
ObexDemo\bin\MANIFEST.MF (385, 2005-02-03)
ObexDemo\bin\ObexDemo.jad (524, 2005-02-03)
ObexDemo\bin (0, 2005-02-03)
ObexDemo\res\icons\demo.png (190, 2004-10-27)
ObexDemo\res\icons (0, 2005-02-03)
ObexDemo\res\images\leaf.jpg (6823, 2004-10-27)
ObexDemo\res\images\duke.png (2869, 2004-10-27)
ObexDemo\res\images\leaf.png (51979, 2004-10-27)
ObexDemo\res\images\Thumbs.db (29184, 2005-03-01)
ObexDemo\res\images (0, 2005-02-03)
ObexDemo\res (0, 2005-02-03)
ObexDemo\src\example\obex\demo\ObexDemoMIDlet.java (2719, 2004-10-27)
ObexDemo\src\example\obex\demo\ObexImageSender.java (6497, 2004-10-27)
ObexDemo\src\example\obex\demo\GUIImageReceiver.java (6813, 2004-10-27)
ObexDemo\src\example\obex\demo\ObexImageReceiver.java (9612, 2004-10-27)
ObexDemo\src\example\obex\demo\GUIImageSender.java (6051, 2004-10-27)
ObexDemo\src\example\obex\demo (0, 2005-02-03)
ObexDemo\src\example\obex (0, 2005-02-03)
ObexDemo\src\example (0, 2005-02-03)
ObexDemo\src (0, 2005-02-03)
ObexDemo\tmpclasses\example\obex\demo\ObexDemoMIDlet.class (2826, 2005-02-03)
ObexDemo\tmpclasses\example\obex\demo\GUIImageSender.class (5222, 2005-02-03)
ObexDemo\tmpclasses\example\obex\demo\ObexImageSender.class (4495, 2005-02-03)
ObexDemo\tmpclasses\example\obex\demo\GUIImageReceiver.class (5680, 2005-02-03)
ObexDemo\tmpclasses\example\obex\demo\ObexImageReceiver$Handler.class (804, 2005-02-03)
ObexDemo\tmpclasses\example\obex\demo\ObexImageReceiver.class (5638, 2005-02-03)
ObexDemo\tmpclasses\example\obex\demo (0, 2005-02-03)
ObexDemo\tmpclasses\example\obex (0, 2005-02-03)
ObexDemo\tmpclasses\example (0, 2005-02-03)
ObexDemo\tmpclasses (0, 2005-02-03)
ObexDemo\classes\example\obex\demo\ObexDemoMIDlet.class (3005, 2005-02-03)
ObexDemo\classes\example\obex\demo\GUIImageSender.class (5446, 2005-02-03)
ObexDemo\classes\example\obex\demo\ObexImageSender.class (5118, 2005-02-03)
ObexDemo\classes\example\obex\demo\GUIImageReceiver.class (5984, 2005-02-03)
ObexDemo\classes\example\obex\demo\ObexImageReceiver$Handler.class (804, 2005-02-03)
ObexDemo\classes\example\obex\demo\ObexImageReceiver.class (6786, 2005-02-03)
ObexDemo\classes\example\obex\demo (0, 2005-02-03)
... ...
The JSR082 IrDA Obex Demo readme
Content:
1. Demo organization
2. Demo scenarios
2.1 The base scenario
2.2 Choose from several obex devices
2.3 Device discovery timeout
2.4 Maximum packet length
==========================================================================
1. Demo organization
Obex Demo is placed in package example.obex.demo and contains 5 classes:
ObexDemoMIDlet - the main class which creates a choice list
to run client or server part of the Demo;
ObexImageSender - it's an OBEX client, which sends the selected
image to the OBEX server;
ObexImageReceiver - it's an OBEX server, which receives the image
from the OBEX client;
GUIImageSender & GUIImageReceiver - the GUI parts of
ObexImageSender & ObexImageReceiver (may be missed on early access
version of the demo).
==========================================================================
2. Demo scenarios
There are 4 scenarios of demo given below:
2.1 The base scenario
- Run two emulators and launch ObexDemo in each;
- In the first emulator - select a ImageReceiver;
- In the second emulator - select a ImageSender;
- In new list which you can see on the second emulator
screen - select any picture name;
- In the first emulator - answer "yes" to accept
and download incoming image;
- After you looked on downloaded image, press "back"
to exit to the main menu of the demo.
2.2 Choose from several obex devices
- Run tree emulators and launch ObexDemo in each
- In the second and third emulators - select a ImageSender,
choose an image to send and initiate the sending
- No later then in 5 seconds, in the first emulator -
select a ImageReceiver;
- In the first emulator - answer "yes" to accept
and download incoming image;
- You'll see the server resumes a work of those
client (second or third emulator) which was connecting
first (before another client), and there is no way
for server to understand which client connects him
(for such simple applications)
2.3 Device discovery timeout
- Run two emulators and launch ObexDemo in each;
- In the first emulator - select a ImageSender,
choose an image and start a sending. You'll
see the "Connecting..." title above the progress.
After some time (10 seconds by default) you'll
see "Receiver isn't ready to download image" response.
- In the first emulator start a sending again.
- Very fast in the second emulator - select a ImageReceiver -
you'll see the first emulator has discovered the second one
and proceed downloading.
- change the "Device discovery timeout" in ktoolbar's Preferences
window: Edit->Preferences->IrDA OBEX->Discovery Timeout
to see it does affect the time the device tries to discover
another devices
2.4 Maximum packet length
- process the demo scenario 2.1 (base scenario) - use
the cdcrus.png image (the largest one in the list) -
remember the time the image data was uploaded,
exit these emulator
- in the IrDA OBEX tab in Preferences window reduce the
Maximum packet length value to 128 bytes (for example);
- process the demo scenario 2.1 with the largest image -
you'll see the image uploading time has been increased;
- exit one of emulators, keeps another one alive,
set Maximum packet length value to 65536 bytes (***Kb)
and run a new emulator, then process the demo scenario 2.1 -
you'll see the download speed is not changed - the
IrDA devices negotiates about the packet size to use
while connecting, so the smallest packet size has an effect;
==========================================================================
Wireless SDK team
Wed Jan 21 17:04:33 2004
近期下载者:
相关文件:
收藏者: