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

  • Home
  • SEARCH
  • 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 6072111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:07:26+00:00 2026-05-23T10:07:26+00:00

I have a search bar in my application for locations, when a user presses

  • 0

I have a search bar in my application for locations, when a user presses the search button i want to search for the address based on the current region the user is in.

At the moment I just call

Geocoder geoCoder = new Geocoder(StreetAngelActivity.this,Locale.getDefault());
addresses = geoCoder.getFromLocationName(searchBar.getText().toString(),1);

But the result is not based on the region the person is in.

How can I ensure that the search retrieves based on the users current location?

I need to somehow find the region the user is in (how would i do this)?

and then append it to the searchbar.getText() and pass to the geocoder

  • 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-05-23T10:07:27+00:00Added an answer on May 23, 2026 at 10:07 am

    Take a look at the link below, you can specify a region. There is no way to specify a region using the Android API, only a locale.

    http://code.google.com/apis/maps/documentation/geocoding/

    P.S. You can make a GeoCoder with a custom locale, which is probably your best bet.

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

Sidebar

Related Questions

I want to implement search bar in my application which will filter list view
I want to create an application which has a search bar in it. When
i have an iOS application witch have a search bar and a UITableView. when
In my application there is a tableView & a search bar. I have an
I need to have a search bar control in my iPhone application, but I'd
In my application I have to add a search bar at the head of
I have created a search bar for my website, the user may search a
alt text http://img216.imageshack.us/img216/2288/problem11.png As given in the picture, I have an search bar in
I have a search box that doesn't have a submit button, I need to
I have created my application that has search form and below contains results for

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.