first activity:
String s="create_newfile";
Intent i = new Intent("com.monster.android.Showfile");
Bundle extras = new Bundle();
extras.putString("task",s);
i.putExtras(extras);
startActivity(i);
second activity:
Bundle extras = this.getIntent().getExtras();
String s = extras.getString("task");
if (extras!=null && s=="create_newfile")
{
setContentView(R.layout.edit);
}
its showing error!!!
So Change into this :