Could not get location from GPS or Cell-id, lack ACCESS_COARSE_LOCATION or ACCESS_COARSE_LOCATION permission?

Contoh Kasus:

Saat saya menggunakan Location Provider maka muncul error seperti dibawah ini:

03-16 10:31:11.894: I/MobclickAgent(3496): Could not get location from GPS or Cell-id, lack ACCESS_COARSE_LOCATION or ACCESS_COARSE_LOCATION permission?

Pertanyaan:

Apa yang menyebabkan error diatas … ?

Jawaban:

Tambahkan permission dibawah ini ke dalam file AndroidManifest.xml:

<uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION”/>

 

Jika tutorial ini bermanfaat silahkan katakan ‘Terima Kasih Fahmi Basya Kartapura’.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *