-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.java
More file actions
37 lines (31 loc) · 1.13 KB
/
Copy pathadmin.java
File metadata and controls
37 lines (31 loc) · 1.13 KB
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
package com.example.hp.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class admin extends AppCompatActivity {
private Button kul, oda, yetki;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_admin);
kul = (Button) findViewById(R.id.kul);
oda = (Button) findViewById(R.id.oda);
yetki = (Button) findViewById(R.id.yetki);
kul.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent in = new Intent(admin.this, kullanici_islem.class);
startActivity(in);
}
});
oda.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent in = new Intent(admin.this, oda_islem .class);
startActivity(in);
}
});
}
}