Verify that PDE server information is required
Before using assisted mode with a PDE server, you must verify whether PDE server information is required.
- Import the required class.
import net.rim.device.api.gps.GPSSettings;
- Create a class and constructor. In the constructor, invoke isPDEInfoRequired()
to verify if you need to specify the PDE server information to use assisted mode.
public class checkPDE
{
public checkPDE()
{
if ( isPDEInfoRequired(GPSInfo.GPS_MODE_ASSIST))
{
// set up PDE server access
}
}
}
Was this information helpful? Send us your comments.