unable to get longitude and latitude in android for real device

user3620233

When I run the App on android emulator and pass the longitude and latitude values from DDMS i get the proper values and also the city name but when I install the .apk file into real device the values of longitude and latitude is set to 0.0 and 0.0. I turned on the gps and every other settings required but still unable to get the co-ordinates.

Manifest file:

 <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17"        />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
    <activity android:name="MainActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
Lal

Add <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission> too in manifest..

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Get current latitude and longitude android

From Dev

Unable to get the current location on real android device

From Java

How to get the current location latitude and longitude in android

From Dev

How to Get City Name by Latitude &Longitude in android?

From Dev

not get the value of latitude and longitude in google map in android

From Dev

Android: get latitude/longitude from pixel coordinate

From Dev

Get latitude,longitude from address in Android

From Dev

How to Get City Name by Latitude &Longitude in android?

From Dev

How to get photo location by latitude and longitude in android?

From Dev

How to get city information in android by longitude and latitude

From Dev

Unable to get the address of my location from latitude and longitude on button click in android

From Dev

Get device location in latitude-longitude in xamarin forms

From Dev

How to get the latitude and longitude of current device location in C#

From Dev

Mapbox get latitude and longitude from device precise location

From Dev

Get Address by Latitude and longitude

From Dev

Get longitude and latitude

From Dev

Google Maps android get longitude-latitude by moving a marker in the map

From Dev

How to get the address by latitude and longitude using openstreetmap in android

From Dev

how to get longitude,latitude from the city name android code

From Dev

How to get the latitude and longitude of location where user taps on the map in android

From Dev

Get current location latitude and longitude for API 23 and above in Android

From Dev

How to get the latitude and longitude of location where user taps on the map in android

From Dev

Can't Get GPS Current Location's Latitude and Longitude Android

From Dev

What is the best way to get latitude and longitude from GPS in Android?

From Dev

How get latitude and longitude from an Android listview and put it in google maps?

From Dev

How to get Latitude and Longitude for Addresses?

From Dev

Get Pincode alone for a latitude / longitude

From Dev

Get latitude and longitude from json

From Dev

Get Latitude/Longitude Python Pandas

Related Related

  1. 1

    Get current latitude and longitude android

  2. 2

    Unable to get the current location on real android device

  3. 3

    How to get the current location latitude and longitude in android

  4. 4

    How to Get City Name by Latitude &Longitude in android?

  5. 5

    not get the value of latitude and longitude in google map in android

  6. 6

    Android: get latitude/longitude from pixel coordinate

  7. 7

    Get latitude,longitude from address in Android

  8. 8

    How to Get City Name by Latitude &Longitude in android?

  9. 9

    How to get photo location by latitude and longitude in android?

  10. 10

    How to get city information in android by longitude and latitude

  11. 11

    Unable to get the address of my location from latitude and longitude on button click in android

  12. 12

    Get device location in latitude-longitude in xamarin forms

  13. 13

    How to get the latitude and longitude of current device location in C#

  14. 14

    Mapbox get latitude and longitude from device precise location

  15. 15

    Get Address by Latitude and longitude

  16. 16

    Get longitude and latitude

  17. 17

    Google Maps android get longitude-latitude by moving a marker in the map

  18. 18

    How to get the address by latitude and longitude using openstreetmap in android

  19. 19

    how to get longitude,latitude from the city name android code

  20. 20

    How to get the latitude and longitude of location where user taps on the map in android

  21. 21

    Get current location latitude and longitude for API 23 and above in Android

  22. 22

    How to get the latitude and longitude of location where user taps on the map in android

  23. 23

    Can't Get GPS Current Location's Latitude and Longitude Android

  24. 24

    What is the best way to get latitude and longitude from GPS in Android?

  25. 25

    How get latitude and longitude from an Android listview and put it in google maps?

  26. 26

    How to get Latitude and Longitude for Addresses?

  27. 27

    Get Pincode alone for a latitude / longitude

  28. 28

    Get latitude and longitude from json

  29. 29

    Get Latitude/Longitude Python Pandas

HotTag

Archive