Thursday, April 14, 2011

A Guide to Use HandlerUI Applications


Description:
Heres the Little guide for the people who are acquainted with HandlerUI applications. Its compact, handy and useful.

(Feature that usually exist on HUI-Part1 (Query))

Front Query:
Front query also known as prefix is an input to append a string in front of the Domain in the URL requested to the network.
ex: http://FrontQuery@www.yahoo.com/test/file.txt

Middle Query:
Middle query is an input to append a string at the back of the Domain in the URL requested to the network.
ex: http://www.yahoo.com@MiddleQuery/test/file.txt

Back Query:
Back query also known as suffix is an input to append a string at the back of the URL requested to the network.
ex: http://www.yahoo.com/test/file.txt?BackQuery

Remove String from URL (HUI123):
A string that will be removed from the URL.

Filter (HUI200):
Filter is an input to modify the URL string requested to the network, the format is:

DOMAIN(StringToBeReplaceOrMove StringToBeReplaceOrMove1\StringToReplace StringToReplace1)
ex:
1.-URL: http://www.yahoo.com/test/file.txt
-Filter: www.yahoo.com(test\coba)
Result: http://www.yahoo.com/coba/file.txt


2.-URL: http://www.yahoo.com/test/file.txt
-Filter: *(st\)
Result: http://www.yahoo.com/te/file.txt

Add Port to non-Port URL:
An input to append port of the Domain in the URL requested to the network. It will not effect on url that already contain port.
ex:-URL: http://www.yahoo.com/test/file.txt
-Add Port to non-Port URL: 80
Result: http://www.yahoo.com:80/coba/file.txt

Remove Port:
This is used to remove existing port on the URL.

(Feature that usually exist on HUI-Part2 (ScreenShot))

First of all, you need to check that you’ve set the J2ME permission for the application (“User Data Access” / “Read User Data” / “Write User Data”) to “Always Allowed” or “Ask every time” or “Ask first time only”. If you set it to “Not Allowed”, than this feature will not working at all.

The Key that can be use to ScreenShot is Green Button (Call Button) and 9 (if the Option on HandlerUI Checked).


ScreenShot Path
I’ve set the Default Saving path of ScreenShot feature to “c:/directory/”,where this drive of path (c:) is usually exist on cellphone. But some cellphone has a different path that is permitted to be access. So, to make sure the ScreenShot successful, try to get information about the permitted path to be written by J2ME application. You may try some java file browser application such as MiniCommander to well know about your system.

New Thread on ScreenShot
J2ME application allow us to do MultiThreading (maybe some cellphone not support this feature). where we can do something while the other thread will beA process in the background. So, when this Feature turn on, while we do ScreenShot, the application will not appear to be stopped, and we can do other things, while in the background the application is saving the image from the Screen.

Which PNG or JPEG is good to be use?
It is depend on how you want it. Both of the file format is very usual to be used. But currently,on the code that i used, i will explain the advantage and disadvantage of them.

The PNG file format that i use, is not compressed. So, the result will be quite consume the Memory. The advantage is, it save more faster because it is not through the compression method.

The JPEG file format that i use, is compressed. So, it will be more efficient. The disadvantage is, it save slower and consume more RAM because it is through the compression method.

For a large resolution Screen, i suggest you to use the JPEG file format, for cellphones that has small RAM/Java Heap, i suggest you to use the PNG file format.

So, make your own choice.

0 Comments:

Post a Comment

1. Comment using "Name/URL" option for easy Communication.
2. You can use Smiley's and basic HTML tags in Comments.