2014年9月6日土曜日

NumberFormat

Google Maps API return latitude ٤٩٠٥٩٤٠٧, ٢٠٢١٧٦١٢.
And Just Landing shows "error sqlite..SQLiteException: no such column: ٤٩٠٥٩٤٠٧".

It looks like Arabic–Indic numerals.

Then use NumberFormat like below.

NumberFormat nf = NumberFormat.getInstance(Locale.US);
nf.format(latitude);

0 件のコメント:

コメントを投稿