title: Getting country currency from country name Android
body: <p>I am facing problem in getting currency to a particular country based on country name. I am getting country name from my current latitude and longitude but for that country I need currency. </p>
  
  <p>Can someone help me ?
  This is my code I am using for country code based on my current location. Also, few solution which I found not supported to API 14 it's only for API 24.</p>
  
  <pre><code>private void getCountryName(double latitude, double longitude) {
          Geocoder myLocation = new Geocoder(HomeScreenGuestActivity.this);
          List&lt;Address&gt; myList = null;
          String country = "";
          try {
              myList = myLocation.getFromLocation(latitude, longitude, 1);
              if (myList != null)
                  country = myList.get(0).getCountryName();
              Currency cc=Currency.getInstance(myList.get(0).getCountryCode());
  
          } catch (Exception e) {`enter code here`
              e.printStackTrace();
          }
  
      }
  </code></pre>