2
在我的程序中,我有一個使用java NumberFormat顯示各種貨幣的部分。作爲例子,以下三行將爲您提供阿爾及利亞的貨幣格式。Android貨幣顯示:設備與模擬器
chosenlocale = new Locale("ar","DZ");
NumberFormat currencyformatter = NumberFormat.getCurrencyInstance(chosenlocale);
String currencyexample = currencyformatter.format(Double.parseDouble("0000.00000"));
當我運行這個在Android模擬器,我拿到爽和時髦的人物,但是我也不當我在我的設備上運行。我假設如果設備是阿爾及利亞原生的,那麼角色會像他們在模擬器中一樣顯示。我的假設是好的嗎?
非常感謝您的輸入!