package com.samovich.funfacts;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class FunFactsActivity extends AppCompatActivity {

    private FactBook mFactBook = new FactBook();
    private ColorWheel mColorWheel = new ColorWheel();

    // Declare our View variables
    private TextView mFactTextView;
    private Button mShowFactButton;
    private RelativeLayout mRelativeLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fun_facts);

        // Assign the Views from the layout file to the corresponding variables
        mFactTextView = (TextView) findViewById(R.id.factTextView);
        mShowFactButton = (Button) findViewById(R.id.showFactButton);
        mRelativeLayout = (RelativeLayout) findViewById(R.id.relativeLayout);

        View.OnClickListener listener = new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                String fact = mFactBook.getFact();
                int color = mColorWheel.getColor();

                // Update the screen with our dynamic fact
                mFactTextView.setText(fact);
                mRelativeLayout.setBackgroundColor(color);
                mShowFactButton.setTextColor(color);
            }
        };
        mShowFactButton.setOnClickListener(listener);
    }
}
@@ -100,16 +100,41 @@
 Bundle;%0A
+import android.util.Log;%0A
 import a
@@ -250,16 +250,45 @@
 extView;
+%0Aimport android.widget.Toast;
 %0A%0Apublic
@@ -1542,16 +1542,17 @@
      %7D;%0A
+%0A
         
@@ -1596,16 +1596,255 @@
 stener);
+%0A%0A        Toast.makeText(%0A                FunFactsActivity.this,%0A                %22Yay! Our Activity was created!%22,%0A                Toast.LENGTH_SHORT).show();%0A%0A        Log.d(%22FunFact Activity%22, %22We're logging from the onCreate() method!%22);
 %0A    %7D%0A%7D

Add sanity and toast