PDA or Desktop

I need to realize an application that is capable to adapt its interface in case is running on a PDA or a Desktop... is that possible? How can I know if the device is a PDA or not?
[186 byte] By [Alortesfbfhfgytytua] at [2007-10-1 8:42:52]
# 1

How to tell whether it is J2SE or some other "crippled" API?

Look for some piece of J2SE missing from the other environment.

String s = "java.tell.taling.class";

boolean ample=false;

try{

Class.forName(s);

ample=true;

}

catch (Exception e) {

}

BIJ001a at 2007-7-9 22:58:14 > top of Java-index,Administration Tools,Sun Connection...