Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp

codeforfun-jp/MainActivity.java Secret

Last active Dec 8, 2020
Embed
What would you like to do?
Java Intro #6-3
package com.example.sample;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView textView = findViewById(R.id.textView);
textView.setText("こんにちは");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment