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 8013483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:38:40+00:00 2026-06-04T19:38:40+00:00

Is there any fast and stable way to detect whether a user is from

  • 0

Is there any fast and stable way to detect whether a user is from USA, Asia, or Europe?

I want to show ads in my app, so I need it.

Thanks

  • 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-04T19:38:42+00:00Added an answer on June 4, 2026 at 7:38 pm

    Option 1

    //Returns the ISO country code equivalent of the current 
    //registered operator's MCC (Mobile Country Code).
      android.telephony.TelephonyManager.getNetworkCountryIso() 
    

    Option 2

    //Returns a constant indicating the device phone type.
    android.telephony.TelephonyManager.getPhoneType()
    

    Option 3

    //Returns the name of this locale's country, localized to locale.
    context.getResources().getConfiguration().locale.getDisplayCountry(Locale locale);
    

    First two, rely on the network or phone type. The third one relies on the configuration of the phone, assuming that even if someone from the USA is in Europe, will still have the phone setup to be from USA, other ways it should just be treated as european.

    By the way, USA is a country, Europe and Asia are continents, you’re probably referring to America instead, or North America in any case.

    That is, assuming you don’t want GPS to avoid devices without it

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

Sidebar

Related Questions

Is there any fast(for performance) way to detect in glsl if fragment has been
Is there any fast (and nice looking) way to remove an element from an
I need to check in some fast way if there is any text nodes
Is there any fast way in C (below 1 sec) to find the number
Is there any fast way to verify null arguments via attributes or something? Convert
Is there any fast way to determine the size of the largest strongly connected
Is there any fast way to flatten an array and select subkeys ('key'&'value' in
Is there any fast way to convert given byte (like, by number - 65
I would like to know if there is any simple/fast way to create a
Is there any fast way to get all subarrays where a key value pair

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.