Location service works in emulator but not on real android device
<p>I would like to get location of user, so I have this code:</p>

<pre><code>LocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
        // Register the listener with the Location Manager to receive location updates
        locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MINIMUM_TIME_BETWEEN_UPDATES,
                MINIMUM_DISTANCE_CHANGE_FOR_UPDATES, this);

        Log.d("locationManager ", "locationManager ");

        /*
         * try to get last know location
         */
        Location location = locationManager
                .getLastKnownLocation(LocationManager.GPS_PROVIDER);

public void onLocationChanged(Location location) {
    this.location=location;
</code></pre>

<p>}</p>

<p>and than I send geot fix:</p>

<pre><code>geo fix -122.41914 37.77919
</code></pre>

<p>it works fine in emulator, but when I try on on real device. it doesn't work, and I see the GPS icon blinking on device.
Notice: GPS is enabled on device.</p>
