Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - yhat

Pages: [1]
1
Personal Java/Jeode/J2ME Personal Profile / Http Connection
« on: June 09, 2006, 06:45:42 am »
Hi! Currently I'm developing an application which will deal with the http connection. For the http connection, I will send out my request to download an image. The problem I'm facing right now is when there's no response back for my request, my whole application is hang. I totally unable to exit the application and need to reset the device all the time. Here, I would like to ask whether is there anyone can help me to handle the no response back for the http connection. I'm using the below method for my http connection.

HttpConnection connection = null;
connection = (HttpConnection)Connector.open(url,Connector.READ_WRITE);
DataInputStream iStrm = connection.openDataInputStream();
ByteArrayOutputStream mSrm = null;
int length = (int) connection.getLength();
mData = new byte[length];          mSrm.readFully(mData);

After opening the connector, I need to close the connector when receiving the response back from my request. If there's no response back, my connector is always open and this cause my application hang.

Is there way to close the connector if there's no response back from the request made to http connection?

Please help....


YHat

2
Hi! I have some problem dealing with the Nokia Communicator. My application is using a timer for repeating my task but it seems that after some time, the timer is stopped by itself. During my repetition, I will call
disp.setCurrent(frmDisplay);
Will this cause the timer stop by itself? Please advise.

3
Hi! I'm using list.multiple to display my records in a form. The problem I'm facing right now is whenever I've selected the items from the list, my list display become duplicate before exiting the form. Actually I 've tried cleared the list and reinitialized the list after my selection but the display is still showing duplicate records in the list. This problem is occurring when I'm running my application in Nokia Series 80. Any ideas? Please help.

YHat

4
I have some questions regarding the menu button. Since I'm unable to disable it, so I'll be using List.Multiple to allow the user to have their multiple selection. Unfortunately, List.Multiple is unable to trigger 'List.SELECT_COMMAND' as this command is only applicable for the 'List.IMPLICIT'. Is there any ways to trigger the 'List.SELECT_COMMAND' as I need to determine the no. of selections? Can we disallow the user to have more than a certain no. of selection? Please advise

5
Personal Java/Jeode/J2ME Personal Profile / Creating Label Using J2me
« on: January 04, 2006, 09:29:24 pm »
Hi! Does anyone knows how to create label using J2ME? Please advise


Thanks in advance!


YHat

Pages: [1]