Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.dz_pavlu;
- import android.support.v7.app.AppCompatActivity;
- import android.os.Bundle;
- import android.app.Activity;
- import android.content.Intent;
- import android.os.Bundle;
- import android.widget.TextView;
- public class ViewActivity extends MainActivity {
- TextView tvView;
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_view);
- tvView = (TextView) findViewById(R.id.tvView);
- Intent intent = getIntent();
- String имя = intent.getStringExtra("IntentImya");
- String фамилия = intent.getStringExtra("IntentFamiliya");
- tvView.setText("Ваше имя: " + имя + " " + фамилия);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement