Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8044721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:18:51+00:00 2026-06-05T05:18:51+00:00

I am creating an application in which by clicking a button on android mobile

  • 0

I am creating an application in which by clicking a button on android mobile i can track the a gps tracker device. In response to the button clicked the gps device containing a sim card response with its latitude and longitude as well as the speed of device. The message sent by the device is received in my mobile’s inbox. i want to convert that latitude and longitude into a google map or atleast in some address form.Can someone suggest me a proper way or give me some hint how i can do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:18:53+00:00Added an answer on June 5, 2026 at 5:18 am

    Get current location coordinates and city name using below code


    private class myLocationListener implements LocationListener{
    
            @Override
            public void onLocationChanged(Location location) {          
                if(location!=null){             
                    locManager.removeUpdates(locListener);
                    String longitude = "Longitude: " +location.getLongitude();
                    String latitude = "Latitude: " +location.getLatitude();
                    String altitiude = "Altitiude: " + location.getAltitude();          
                    String cityName;
    
                    Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());
                    public List<Address> addresses= gcd.getFromLocation (double latitude1, double longitude1, int maxResults)   
    
                    List<Address> addresses;
                    try {
                        addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);
                        if (addresses.size() > 0)
                            System.out.println(addresses.get(0).getLocality());
                        cityName=addresses.get(0).getLocality();
                    } catch (IOException e) {                   
                        e.printStackTrace();
                    }
                    showLocation.setText("City Name: "+cityName+"+ "\n"+longitude + "\n" + latitude + "\n" + altitiude);
                    progress.setVisibility(View.GONE);
                }
            }
    

    then you can get gmap using city name or location value using this code


    public void getMap(String location) {
            map_location = "geo:0,0?q=" + location;
            Uri geoUri = Uri.parse(map_location);
            Intent mapCall = new Intent(Intent.ACTION_VIEW, geoUri);            
        }
    

    or even you can check this example for little help

    let me know if still you get trouble

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an application which communicates with the device via FT2232H USB/RS232 converter. For
I am creating an application which tracks the users location using GPS, stores the
I am creating application which is having functionality like 1 person can view video
I'm creating .NET application which connects to WindowsCE device using Active Sync. I'm using
I am implementing android application which is on web service. I'm creating login Activity
I am creating a application which displays 8 thumbnails per page and it can
I'm creating an application which must be 'hacker compatible', so that people can edit
I am creating application in which I would have database which users can´t edit.
i am creating an application which connects 4 devices. one of them acts as
I am creating an application which involves so many web-service calls. I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.