I wanted to get the name of pizza on bill page put it isn't displaying(blank).
Menu.java:
bundle = new Bundle();
bundle.putString("name",pizzaName);
y = new Intent(this,Bill.class);
y.putExtras(bundle);
startActivity(y);
Bill.java:
text1=(TextView)findViewById(R.id.textView6);
y= new Intent();
bundle=getIntent().getExtras();
Name=bundle.getString("name");
text1.setText();
Output: