Created
May 25, 2020 07:34
-
-
Save BMU-Verlag/add6c798b72277704a895c8d6c384bca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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