[Android]エラー対策 The default locale is not appropriate for machine-readable output.

原文
The default locale is not appropriate for machine-readable output. The best choice there is usually Locale.US – this locale is guaranteed to be available on all devices, and the fact that it has no surprising special cases and is frequently used (especially for computer-computer communication) means that it tends to be the most efficient choice too.

Google翻訳
既定のロケールは、機械可読出力には適切ではありません。このロケールはすべてのデバイスで使用できることが保証されています。驚くべき特別なケースはなく、頻繁に使用されている(特にコンピュータとコンピュータの通信に使用されています)ということは、最も効率的な選択肢です。

これだとロケール情報が無いから、漢字とかアラビア語になる可能性もあるよという警告


String.format(“%04d-%02d-%02d”,year,month,day);

正(お好みのLocaleに変更)
String.format(Locale.US,”%04d-%02d-%02d”,year,month,day);