@@ -0,0 +1,1767 @@
+package com.example.smartgrid;%0A%0Aimport android.app.Activity;%0Aimport android.content.Intent;%0Aimport android.os.Bundle;%0Aimport android.view.View;%0Aimport android.widget.Button;%0A%0Apublic class MainActivity extends Activity %7B%0A%0A%09@Override%0A%09protected void onCreate(Bundle savedInstanceState) %7B%0A%09%09super.onCreate(savedInstanceState);%0A%09%09setContentView(R.layout.activity_main);%0A%0A%09%09Button create = (Button) findViewById(R.id.button1);%0A%09%09Button delete = (Button) findViewById(R.id.button2);%0A%09%09Button edit = (Button) findViewById(R.id.button3);%0A%09%09Button schedule = (Button) findViewById(R.id.button4);%0A%09%09Button view = (Button) findViewById(R.id.button5);%0A%0A%09%09create.setOnClickListener(new View.OnClickListener() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09Intent intent1 = new Intent(MainActivity.this,%0A%09%09%09%09%09%09CreateActivity.class);%0A%09%09%09%09startActivity(intent1);%0A%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09delete.setOnClickListener(new View.OnClickListener() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09Intent intent2 = new Intent(MainActivity.this,%0A%09%09%09%09%09%09DeleteActivity.class);%0A%09%09%09%09startActivity(intent2);%0A%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09edit.setOnClickListener(new View.OnClickListener() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09Intent intent3 = new Intent(MainActivity.this,%0A%09%09%09%09%09%09EditActivity.class);%0A%09%09%09%09startActivity(intent3);%0A%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09schedule.setOnClickListener(new View.OnClickListener() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09Intent intent4 = new Intent(MainActivity.this,%0A%09%09%09%09%09%09ScheduleActivity.class);%0A%09%09%09%09startActivity(intent4);%0A%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09view.setOnClickListener(new View.OnClickListener() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09Intent intent5 = new Intent(MainActivity.this,%0A%09%09%09%09%09%09ViewActivity.class);%0A%09%09%09%09startActivity(intent5);%0A%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%7D%0A%7D%0A

Create MainActivity.java