Specify a response time for retrieving the location of the BlackBerry device
- Import the javax.microedition.location.Criteria
class.
- Create an instance of a Criteria object.
Criteria criteria = new Criteria();
- Invoke Criteria.setPreferredResponseTime() and specify the response time, in milliseconds.
criteria.setPreferredResponseTime(500);
Was this information helpful? Send us your comments.