public String name, email, phone;
NotificationCompat.Builder notification1;
Button aprv;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main2);
    aprv=(Button)findViewById(R.id.btnapp);
    Bundle bundle=getIntent().getExtras();
    name=bundle.getString("Name");.......................##
    email=bundle.getString("Email");
    phone=bundle.getString("Phone");
    TextView textView1=(TextView)findViewById(R.id.tv1);
    TextView textView2=(TextView)findViewById(R.id.tv2);
    TextView textView3=(TextView)findViewById(R.id.tv3);
    textView1.setText(name);
    textView2.setText(email);
    textView3.setText(phone);
Null pointer exception shown in the line with hashtags.
Here's the intent code in another activity. I set the manifest correctly.
Intent intent = new Intent("com.example.user.adminapp.Main2Activity");
intent.putExtra("Name", name);
intent.putExtra("Email", email);
intent.putExtra("Phone", phone);
startActivity(intent);
 
     
    