You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
776 B

package com.example.t2;
import android.content.Intent;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
TextView username, password;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.page);
username = findViewById(R.id.et_Name);
password = findViewById(R.id.et_Psw);
Intent intent = getIntent();
String Username = intent.getStringExtra("username");
String Password = intent.getStringExtra("password");
username.setText(Username);
password.setText(Password);
}
}