You should be able to find out the device type by calling
in your MIDlet. Most devices will return a
String describing the device (e.g. my Nokia 7210 returns "Nokia7210/4.20").
Unfortunately, not all devices implement this properly - some just return null, others just return "j2me". I don't know about Palm or Blackberry.