-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserpass.java
More file actions
28 lines (22 loc) · 796 Bytes
/
Userpass.java
File metadata and controls
28 lines (22 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.example.practicemapapp;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.content.Intent;
public class Userpass extends Activity{
Button login; // button is login button
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.usrpass);
// button listener for the login button
login = findViewById(R.id.button4);
login.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent viewUserpass = new Intent(Userpass.this, Userpass.class);
startActivity(viewUserpass);
}
});
}
}