Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Ian Strain

Ranch Hand
+ Follow
since Jun 30, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ian Strain

why not do a file browser which means it will incorporate JSR-75. You could also have a browser for the PIM data.
12 years ago
you can't get the mobile number from the header in j2me.
12 years ago
I'm sure the book will tell you all you need and if you are using netbeans that will compile and emulate the code you have written.
12 years ago
Without the port number, j2me will never receive the SMS
12 years ago
there is no buttons in the same way as on windows applications etc.
If you want to use commands you have to add them to the form using Form.addCommand()
This will add the command buttons but will place them under the softkeys and if you have more than 2 commands they will be placed in a menu bar accessed by one of the softkeys

If its a calculator you are planning on making which is going to resemble a calculator like the one in windows then you are going to find it very difficult. This is because the lcdui, is very poor in organising layout. You may need to use a canvas and implement your own ui.

But if you want a button added to your form then you can use either an ImageItem (which would probably be best in your case) or a StringItem.
When you declare wither one, set the apperanceMode parameter to either Image Item.BUTTON or StringItem.BUTTON, depending on which you use.



You will have to have a command already declared and set it to be the default command of the ImageItem or StringItem


These items are now commands so in order for your code to recognise an event when they are pressed you must set an ItemCommandListener to the StringItem or ImageItem



you will have to implement the commandAction(Command command, Item item) method when implementing the ItemCommandListener. This gets called when you select the button item.
12 years ago
this also happens using the fromSerialFormat() method.
13 years ago
Tested on Nokia 6230i, 6131 and Sony Ericsson K750, W850. This problem only occurred on the Nokia devices.
13 years ago
Hi all,

I am writing an app that gets the PIM data from the phone and sends it to a server. To do this I use PIM.toSerialFormat() that will write data PIM entry to an output stream which I then send to the server. I then can retrieve the PIM data at a later late from the server and write it to the phone. This all works fine.
The problem is that when I get the PIM data from the todo list (and possibly the event list, I haven't checked) and write it to the output stream the date that was for the todo task changes to the current time and date of the phone. So therefore when I read the todo task back from the server it will have the wrong scheduled time.

For example;
I have a todo task scheduled to go off on the 20-9-07 at 20:00. When I send the todo task to the server the scheduled time changes to the time and date the device is currently at, say 13-9-07 14:53. So when I get the data back from the server and save the todo task on the device the time for the scheduled task is now 13-9-07 14:53

Has anyone noticed this? Is there a work around? I really hope this is not a bug in the PIM api. I think it is a serious one!
At the moment I think the only work round would be to read from the pim entry and not us toSerialFormat
13 years ago
Hi,

I've written an app that uses registerAlarm to restart the app after a certain amount of time. When the app starts via the alarm, is there any way of identifying that it was the alarm that started the app and not the user?

Thanks
Ian
13 years ago
I've had confirmation from Samsung.

In order to be able to receive an sms on the Samsung X450 (and probably similar devices) the MIDlet has to have a certificate signed under the Operator Domain.

Thanks to Sunho at Samsung for this information.
13 years ago
Hi,

I been trying now for 2 days to get the Samsung X450 to receive an SMS. I have used different approaches and I have debugged to see if it is making a MessageConnection, if its calling notifyIncomingMessage, if it calls connection.receive() and after getting no positive results I am under the impression that its not possible. i have also sent it binary and text messages but the app never got them.

Can someone confirm that this is the case?
This is really time consuming and an acknowledgement would enable me to move onto other devices.

Or does anyone have any other approach to try?
13 years ago
Post your code and I'll see if I can spot anything wrong with it
13 years ago
When you specify the MIDP and CLDC the phone has to support the versions you have set. That is why a MIDP 2.0 CLDC MIDlet will go onto the 6230 but not the 6600.

To deploy to a samsung, the only way is by using O.T.A (Over the Air) and downloading it to the phone. Some sites might host the midlets or you can run a server on your machine. The same goes for Motorolas, all O.T.A. Even though the phones have infra red or bluetooth they still won't recognise a jar
15 years ago
I've managed to create a guage that indicates the progress of downloading an image from a server. My problem is indicating the progress of downloading a streaming video. Do you know how to do this?
15 years ago
I'm using nokia's example of a bluetooth network

http://www.forum.nokia.com/main/1,6566,21,00.html?fsrParam=1-3-/main/1,,21_10,00.html&fileID=5005

I am testing it on the Nokia 7610, 6600 and 6230. When the 7610 is the server and the other phones are the clients and one client disconnects the 7610 application crashes with an illegalArgumentException Error. When using the other phones as the server the application continues to send data to the remaining clients.
Do you know why this is happening?
15 years ago