(Android) Add another permission- ACCESS_COARSE_LOCATION - in case LocationManager

needs this
This commit is contained in:
twinaphex 2013-12-20 01:18:35 +01:00
parent 792b27288a
commit 3338513a9a
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application
android:allowBackup="true"

View File

@ -12,6 +12,7 @@ import android.content.SharedPreferences;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
/**
@ -256,7 +257,8 @@ LocationListener
// Report to the UI that the location was updated
String msg = "Updated Location: " + location.getLatitude() + ", " + location.getLongitude();
Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
Log.i("RetroArch GPS", msg);
//Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
}
@Override