これが私のコードです。これを実行すると、次のようなエラーが発生します。
java.lang.ArrayIndexOutOfBoundsException:index = 6 length = 6
for(i=1;i<6;i++)
{
String s = getSharedPreferences("TEXT", 0).getString("DATA" + sequenceNumber, null);
if(s!=null){
String[] numb= new String[6];
numb[i]=s;
Bundle b=new Bundle();
b.putStringArray(key, numb);
Intent i=new Intent();
i.putExtras(b);
i.setClass(MainActivity.this, NotifyEmergencyCall.class);
startActivity(i);
}
}
誰かがこれを手伝ってくれますか?ありがとうございました。