package com.amitness.photon;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if(id == R.id.id_about) {
            //TODO: Write intent to another activity
            return true;
        }
        return true;
    }
}

@@ -23,16 +23,47 @@
 hoton;%0A%0A
+import android.content.Intent;%0A
 import a
@@ -184,16 +184,42 @@
 enuItem;
+%0Aimport android.view.View;
 %0A%0Apublic
@@ -840,11 +840,351 @@
 e;%0A    %7D
+%0A%0A    public void gotoTransmitActivity(View view) %7B%0A        Intent nextPage = new Intent(MainActivity.this, TransmitActivity.class);%0A        startActivity(nextPage);%0A    %7D%0A%0A    public void gotoReceiveActivity(View view) %7B%0A        Intent nextPage = new Intent(MainActivity.this, ReceiveActivity.class);%0A        startActivity(nextPage);%0A    %7D
 %0A%7D%0A

Add intents to switch to another activity