package com.robitdroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

public class RobitDroid extends Activity {
    private ImageView imageview;

    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        imageview = (ImageView) findViewById(R.id.ImageViewRobit);
        imageview.getLayoutParams().height = 400;
    }

    public void selfStart(View view) {
        Log.v("RobitDroid", "In selfStart method");
        // Start new game
        Intent i = new Intent(view.getContext(), GameScreen.class);
        startActivity(i);
    }

    public void showInstructions(View view) {
        showDialog(0);
    }

}

package com.robitdroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

public class RobitDroid extends Activity {
    private ImageView imageview;

    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        imageview = (ImageView) findViewById(R.id.ImageViewRobit);
        imageview.getLayoutParams().height = 400;
    }

    public void selfStart(View view) {
        Log.v("RobitDroid", "In selfStart method");
        // Start new game
        Intent i = new Intent(view.getContext(), GameScreen.class);
        startActivity(i);
    }

    public void showInstructions(View view) {
        showDialog(0);
    }

    @Override
    public void onBackPressed() {
        finish();
    }
}

Exit when backButton pressed in menu
Exit when backButton pressed in menu
