Howdy,
I have a MIDlet which uses the Location API's...
Inside the created Location class I implemented a checkApiExistence() method that checks for the existence of the api on the device :
public static boolean checkApiExistence()
{
String version = System.getProperty("microedition.location.version");
return (version != null && !version.equals("")) ? true : false;
}
just like in the Location API's example of Nokia... Tried that one on a non-jsr179 device and im getting same error...
only problem is that in that same class I have a import javax.microedition.location.*; statement...
so when I try to run the MIDlet i get a No Class Def Found Error... obviously because of the fact that the api's are not supported, and I try to import them right away...
so... Is there some way to get rid of this porblem ? Maybe to decide runtime not to import those api's ? any other tip is welcome !
thanks in advance

Reply With Quote



