Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRobotics.java
More file actions
Latest commit
45 lines (37 loc) · 1.74 KB
/
Copy pathRobotics.java
File metadata and controls
45 lines (37 loc) · 1.74 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
38
39
40
41
42
43
44
45
packagecom.example.ruchita.technology;
/**
* Created by Ruchita on 10/13/2017.
*/
importandroid.content.Intent;
importandroid.support.v7.app.AppCompatActivity;
importandroid.os.Bundle;
importandroid.view.View;
importandroid.widget.TextView;
importcom.example.ruchita.technology.R;
publicclassRoboticsextendsAppCompatActivity {
TextViewt1, t2;
@Override
protectedvoidonCreate(BundlesavedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_robotics);
t1 = (TextView) findViewById(R.id.textView);
t2 = (TextView) findViewById(R.id.textView2);
t1.setText("Robotics");
t2.setText("Robotics is an interdisciplinary branch of engineering and science that includes mechanical engineering, electrical engineering, computer science, and others. Robotics deals with the design, construction, operation, and use of robots as well as computer systems for their control, sensory feedback, and information processing.\n" +
"These technologies are used to develop machines that can substitute for humans. Robots can be used in any situation and for any purpose, but today many are used in dangerous environments.\n");
}
publicvoidclick(Viewview) {
switch (view.getId()) {
caseR.id.button8:
Intenti1 = newIntent(this, robotics_data.class);
startActivity(i1);
break;
caseR.id.button17:
Intenti2 = newIntent(this, robotics_data.class);
startActivity(i2);
break;
//Intent i=new Intent(this,robotics_data.class);
//startActivity(i);
}
}
}