私のinteger.xml
中で私は持っています
<integer name="minUNameLen">6</integer>
そして私のコードでは私は:
if (uName.trim().length() < R.integer.minUNameLen) {
Toast.makeText(
Splash.this.getApplicationContext(),
"Should be Min "+R.integer.minUNameLen+" characters long",Toast.LENGTH_LONG).show();
しかし、戻る代わりに、コードで奇妙な数字を6
取得しています。2131165….
ここで何が悪いのか誰にもわかりますか?
ここResources.getInteger(R.integer.minUNameLen)
からやるとCannot make a static reference to the non-static method getInteger(int) from the type Resources