Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Last active December 8, 2020 07:06
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 codeforfun-jp/682a12ad6441aec57c6eb967f0de522b to your computer and use it in GitHub Desktop.
Save codeforfun-jp/682a12ad6441aec57c6eb967f0de522b to your computer and use it in GitHub Desktop.
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