Skip to content

Instantly share code, notes, and snippets.


illuzor/ Secret

Created Oct 6, 2018
What would you like to do?
package com.illuzor.buildtest;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class MainActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
Button button = findViewById(;
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Toast.makeText(MainActivity.this, R.string.hello, Toast.LENGTH_LONG).show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.