I'm trying to use a bundle. But the code gives me some errors.. The paramBundle.open returns with an error : cannot resolve method open(), the method close() does the same for me. The AnimationGetNewNumber method cant be resolved either. What am I doing wrong ?
protected void onCreate(Bundle paramBundle) {
super.onCreate(paramBundle);
setContentView(R.layout.activity_add_edit_animation);
getIntent().getExtras();
if (getIntent().getExtras().getInt("AEA_INT_ACTION", 0) == 0)
{
Bundle bundle= new Bundle(paramBundle);
paramBundle.open();
this.animationNumber = paramBundle.AnimationGetNewNumber();
paramBundle.close();
}
for (;;)
{
this.gridView = ((GridView)findViewById(R.id.gridviewAddEdit));
this.gridView.setChoiceMode(1);
this.imageAdapter = new ImageAdapter(this, this.animationNumber);
this.gridView.setAdapter(this.imageAdapter);
this.gridView.setOnItemClickListener(this);
this.gridView.setOnItemLongClickListener(this);
return;
this.animationNumber = getIntent().getExtras().getInt("AEA_INT_NUMBER", 0);
}
}