Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created May 25, 2020 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/add6c798b72277704a895c8d6c384bca to your computer and use it in GitHub Desktop.
Save BMU-Verlag/add6c798b72277704a895c8d6c384bca to your computer and use it in GitHub Desktop.
package com.example.ersteapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
public class Begruessung extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_begruessung);
Intent intent = getIntent();
String name = intent.getStringExtra(MainActivity.AUSGABE);
TextView textView = findViewById(R.id.textView);
textView.setText("Hallo " + name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment