title: How can I get my Android device country code without using GPS?
body: <p>An Android mobile actually does know quite well where it is - but is there a way of retrieving the country by something, like a country code or country name?</p>
  <p>There isn't any need to know the exact GPS position - the country code or name is sufficient, and I am using this code:</p>
  <pre><code> String locale = context.getResources().getConfiguration().locale.getCountry(Locale.getDefault());
   System.out.println(&quot;country = &quot;+locale);
  </code></pre>
  <p>It gives me the code &quot;US&quot;, but my device kept in India. Is there a way to find the device's current country code without using GPS or a network provider?</p>
  <p>Because I am using a tablet.</p>