-
Notifications
You must be signed in to change notification settings - Fork 1
/
Java
104 lines (74 loc) · 2.5 KB
/
Java
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//BERIKUT ADALAH SOURCE CODE JAVA,TOTAL ADA 3
//TAMPILAN KE-1 (LOGIN)
package com.example.replicate2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class Login extends AppCompatActivity {
//list elemen
TextView tvmobilenumber;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tvmobilenumber=findViewById(R.id.tvmobilenumber);
tvmobilenumber.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent in = new Intent(Login.this,mobile_login.class);
startActivity(in);
}
});
}
}
//TAMPILAN KE-2 (MOBILE LOGIN)
package com.example.replicate2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class mobile_login extends AppCompatActivity {
Button btncircle;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mobile_login);
btncircle=findViewById(R.id.btncircle);
btncircle.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent in = new Intent(mobile_login.this,sms_code.class);
startActivity(in);
}
});
};
}
//TAMPILAN KE-3 (TERAKHIR/SMS_CODE)
package com.example.replicate2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class sms_code extends AppCompatActivity {
Button btnsms;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sms_code);
btnsms=findViewById(R.id.btnsms);
btnsms.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent sms = new Intent(sms_code.this, Kalkulator.class);
startActivity(sms);
}
});
}
}