-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainActivity.java
65 lines (52 loc) · 1.46 KB
/
MainActivity.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
package com.piyusha.foodorderingapp;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import java.util.LinkedList;
import java.util.Queue;
public class MainActivity extends Activity {
EditText t1, t2;
Button b1, b2,b3;
// Queue<Order> q=new LinkedList<>();
@SuppressLint("MissingInflatedId")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
b1 = (Button) findViewById(R.id.btn1);
b2 = (Button) findViewById(R.id.btn2);
b1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
loginvpage();
}
});
b2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
logincpage();
}
});
}
public void loginvpage() {
Intent intent = new Intent(this, Loginvendor.class);
startActivity(intent);
}
public void logincpage() {
Intent intent = new Intent(this, Logincust.class);
startActivity(intent);
}
}
/*class Order
{
int tokenid,noofpeople;
Order(int id,int n)
{
this.tokenid=id;
this.noofpeople=n;
}
}*/