Pavlin Mihalev

Greenhorn
+ Follow
since Apr 29, 2003
Merit badge: grant badges
For More
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 Pavlin Mihalev

Hi,
working with RMS is REALLY confusing ... Please specify the device you are working on.
You could try setting the "MIDlet-Data-Size:" property of the jad - I would expect some limitation under 64k for example. Another thought : try to change the length of the data written in order to find out is there some value wich is accepted.
hope this helps
Good luck !
20 years ago
Hello Lion,
In fact RMS is source of trouble on many devices, be prepared to face strange situation with it ... It seems that some devices are looking for the not mandatory field of the jad "MIDlet-Data-Size:". I'm not sure but try to put it in the jad with some value. Hope this helps !
Good luck !
20 years ago
Hello again,
I'm afraid we are a little bit loosing the topic ... About the communication between the mobile user and the corporate back end
I think that the user will prefer to use a laptop conected through Wi-Fi or pcmcia card rather than one or more j2me devices. It's a practical question I think - you can do more things quickly on a keyboard.
Cheers
20 years ago
It seems that Wi-Fi is "happening" more quickly than 3G. Very soon there will be enough hotspots even on the road, so all you'll have to do is to drive to the next McDon. or the next gaz station to connect your laptop.
On other hand 3G is a data bearer as well, so why not plug a GPRS/HSCD/WLAN card modem in the laptop and stay connected everywhere.
The main advantage of a j2me device is that it's connected, but with Wi-Fi that's no more the same situation.
[ January 07, 2004: Message edited by: Pavlin Mihalev ]
20 years ago
Hello,
The article is extremely interesting but in my humble opinion mobile Wi-Fi terminals will make the communication with the corporate back end and thus the need of j2me will be obsolete.
What do you think ?
20 years ago
Fred
could you please give us/me some more info what is "GCF on the MIDP profile" ?
Thank you
20 years ago
Hello
just two suggestions
- verify that the image is suported on the device, load it from a jar for example
- i have found that in.read(byte[]) doesn't work well for big arrays - try to read the data in a loop
20 years ago
Diane,
you could pass the substrings to
public static int parseInt(String s)
method of java.lang.Integer)
Hope this helps
20 years ago
Hello
Try to put an "/" in your path:
getResourceAsStream("/xxx.txt");
Cheers,
Pavlin
20 years ago
Hello,
I would suggest you to create a background bufer image, get the image graphics, draw in this graphics the image you want to be fixed and then move the bufer.
Cheers,
Pavlin
20 years ago
Hello,
if you want to use j2me to download and save file you can:
download this way:
read some bytes ...
and then save using RMS:

But the file will be usable/visible only by the java app that downloaded it.
Hope this helps ;-)
Cheers,
Pavlin
20 years ago
Hello,
If I'm understanding right your question, here's what your solution will look like:
InputStream is = getClass().getResourceAsStream("/YOUR_FILENAME_HERE");
and then for example
DataInputStream dis = new DataInputStream(is);
I hope this helps ;-)
Cheers,
Pavlin
20 years ago
Hello,
I had a similar problem with a multithreading game on ser60 - if one of the threads is not stoped, after exiting the game the phone slows up in reaction and the game can't start up again. I fixed this by making the Thread static and explicitly kill it (myThread = null) in destroyApp.
I don't say it's the best solution but it works. I'll be happy to see another way to handle this.
Cheers,
20 years ago
Thank you for responding,
Theodore, seeing that the program is running on Sanyo doesn't respond to the question how much space it could use.
Lasse, is there Sanyo API/documentation published ? On nokia 3650 RMS can't do setRecord() properly ... It's similar to Motorola's bug described by microjava.com
Cheers,
Pavlin
20 years ago
Hi,
Thank you for your suggestion. But Java is not supposed to be device specific right ? What will happen If I make a patch for the bugs in each implementation ? Around hundred versions of the same program ...
Another problem on the Sanyo phones is that a system API calls returns the available memory in kBytes, not in bytes as per specification...and that may be misleading the program.
Take care,
Pavlin
20 years ago