Specify a response time for retrieving the location of the BlackBerry device

  1. Import the javax.microedition.location.Criteria class.
  2. Create an instance of a Criteria object.
    Criteria criteria = new Criteria();
    
  3. Invoke Criteria.setPreferredResponseTime() and specify the response time, in milliseconds.
    criteria.setPreferredResponseTime(500);
    

Was this information helpful? Send us your comments.