How to get price of an app for different countries by using in-app purchase in android -


suppose app on play store available different countries. according country, app price changes, want fetch app price according country. how this?

bundle queryskus = new bundle();                 queryskus.putstringarraylist(get_sku_details_item_list, skupartlist);                 bundle skudetails = null;                 try {                     skudetails = mservice.getskudetails(3, mcontext.getpackagename(),                             item_type_inapp, queryskus);                 } catch (remoteexception e) {                     e.printstacktrace();                 }                  int response = skudetails.getint("response_code");                 if (response == 0) {                     arraylist<string> responselist                             = skudetails.getstringarraylist("details_list");                      (string thisresponse : responselist) {                         jsonobject object = null;                         try {                             object = new jsonobject(thisresponse);                             string sku = object.getstring("productid");                             string price = object.getstring("price");                              log.d("iabhelper", "test sku = " + sku + " && price = " + price);                           } catch (jsonexception e) {                             e.printstacktrace();                         }                      }                  } 

the above code giving me price of app according country. how other users country it? google play service handles or need use different code?if yes how?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -