making an app that asks the user for their favorite color, then take them to a new Activity that uses that color as a background color and says something nice about them.
but i dont why its crashing again and agian

heres the code

MainActivity.java

```
private TextView mtextview;
private EditText medittext;
private Button mbutton;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

     mtextview = (TextView) findViewById(R.id.textView);
     medittext=(EditText)findViewById(R.id.editText);
    mbutton=(Button)findViewById(R.id.button);

    mbutton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            String name =medittext.getText().toString();
            startStory(name);
        }

        private void startStory(String name) {
            Intent intent = new Intent(MainActivity.this,AnotherActivity.class);
            intent.putExtra("name",name);
            startActivity(intent);
        }
    });

}

```

}

AnotherActivity.java

```
public class AnotherActivity extends AppCompatActivity {

     @Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_another);

    final RelativeLayout mrelativelayout = (RelativeLayout) findViewById(R.id.activity_main);
    Intent intent   = getIntent();
    String name = intent.getStringExtra("name");
    mrelativelayout.setBackgroundColor(Color.parseColor(name));

}

```

}