Android Crashing due to null Criteria
<p>I have the following code that crashes due to the Criteria being null.</p>

<p>For some reason the String best is null.  Any ideas why?</p>

<pre><code>private void startGPS() {
    Criteria criteria = new Criteria();
    criteria.setAccuracy(Criteria.ACCURACY_FINE);
    criteria.setPowerRequirement(Criteria.NO_REQUIREMENT);

    String best = locationManager.getBestProvider(criteria, true);

    Log.v(DEBUG_TAG, "Best provider: " + best);

    locationManager.requestLocationUpdates(best, 50, 0, this);

}
</code></pre>
