gsd

Greenhorn
+ Follow
since Jul 09, 2005
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 gsd

Bluetooth serial connections run over RFCOMM. Even if you use a BT MIDP2.0 CommConnection it'll probably run over the top of an RFCOMM connection so you might as well set it up yourself.

You may be able to use a JSR082 BT OBEX connection - I'd have a look at the spec for that first. It's designed to do what you want it to.
18 years ago
Can you not just use, where x is the number you want a random number up to (eg 1000):

long x = 1000;
long t = System.currentTimeMillis();
int result = (int)(t % x);

That should give you a fairly random number 0 and 999 (?).
18 years ago
There isn't really a solution to this one. All web/http transactions must go through your operator's gateway to the internet. This means that they can control exactly what you can view. Some operators exclude sites which is usually okay, but some only allow you to access a select few sites that they permit. They do this to force the user to their sites which they hope will increase their revenues since you can only buy, for example, ringtones from them.
18 years ago
Some of the device manufacturors only allow you to access files within certain directories. This may mean that you don't have access to the particular directory you're interested in. Can you access a picture (read or write) in a different directory?
18 years ago
Not very useful at the moment, but one of the goals of JSR211 (Content Handling API) is to allow users to invoke content handlers. This is generally intended to launch other MIDlets (and directing them to the content to be handled) but some devices may allow proprietary applications to be registered as content handlers is a more generic fashion.
18 years ago
If you want to access files on a phone, then the phone must have an implementation of the FileConnection part of JSR075. There will probably be several drives present on the phone (ROM, RAM, Media-card etc), but the Java implementation *may* restrict your access to these.

I've had a quick look and it doesn't look as if JSR075 has been implemented for the K700i, but I may be wrong.
18 years ago
I don't think you need to worry about the notes. The javax.microedition.media.xxx notes are due to the fact that the classes are present in both the mmapi.jar and midpapi20.jar.

Obfuscating Java byte-code usually reduces the total size, so your jar file change should be expected.
18 years ago