owo #1

Merged
jj97181818 merged 7 commits from :master into master 2018-12-13 02:42:51 +00:00
6 changed files with 118 additions and 48 deletions
Showing only changes of commit de0f7e4494 - Show all commits

View File

@ -17,6 +17,16 @@ public class MainActivity extends AppCompatActivity {
tvPath = findViewById(R.id.tv_path1); tvPath = findViewById(R.id.tv_path1);
} }
private void run(Intent intent) {
tvPath.setText(intent.getCharSequenceExtra("path"));
if (tvPath.getText().equals("")) {
tvPath.setText("1");
}
else {
tvPath.setText(tvPath.getText() + " -> 1");
}
}
public void goBack (View v) { public void goBack (View v) {
finish(); finish();
} }

View File

@ -17,6 +17,11 @@ public class SecondActivity extends AppCompatActivity {
tvPath = findViewById(R.id.tv_path2); tvPath = findViewById(R.id.tv_path2);
} }
private void run(Intent intent) {
tvPath.setText(intent.getCharSequenceExtra("path"));
tvPath.setText(tvPath.getText() + " -> 2");
}
public void goBack (View v) { public void goBack (View v) {
finish(); finish();
} }

View File

@ -17,6 +17,11 @@ public class ThirdActivity extends AppCompatActivity {
tvPath = findViewById(R.id.tv_path3); tvPath = findViewById(R.id.tv_path3);
} }
private void run(Intent intent) {
tvPath.setText(intent.getCharSequenceExtra("path"));
tvPath.setText(tvPath.getText() + " -> 3");
}
public void goBack (View v) { public void goBack (View v) {
finish(); finish();
} }