Code example for Locale

Methods: getCountry

0
                      String productID,
                      HistoryManager historyManager,
                      Context context) {
    super(textView, historyManager);
    String country = LocaleManager.getCountry(context);
    if ("ISBN".equals(type) && !Locale.US.getCountry().equals(country)) {
      type = "EAN";
    } 
    this.type = type;
    this.productID = productID;
    this.country = country;
  } 
 
  @Override 
  void retrieveSupplementalInfo() throws IOException { 
 
    CharSequence contents =  
        HttpHelper.downloadViaHttp("https://bsplus.srowen.com/ss?c=" + country + "&t=" + type + "&i=" + productID,
                                   HttpHelper.ContentType.XML); 
 
    String detailPageURL = null;