package qodr.sqlitecrud.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import qodr.sqlitecrud.R;

public class MainActivity extends AppCompatActivity {

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

        getSupportActionBar().setElevation(0);
    }

    public void gotoCreate(View view) {
        moveToActivity(CreateActivity.class);

    }
    public void goRead(View view) {
        moveToActivity(ReadActivity.class);

    }
    public void goUpdate(View view) {
        moveToActivity(UpdateActivity.class);
    }

    public void goDelete(View view) {
        moveToActivity(DeleteActivity.class);
    }

    private void moveToActivity(Class className) {
        startActivity(new Intent(MainActivity.this, className));
    }


}

@@ -59,16 +59,40 @@
 Intent;%0A
+import android.net.Uri;%0A
 import a
@@ -158,16 +158,72 @@
 Bundle;%0A
+import android.view.Menu;%0Aimport android.view.MenuItem;%0A
 import a
@@ -533,32 +533,688 @@
 tion(0);%0A    %7D%0A%0A
+    @Override%0A    public boolean onCreateOptionsMenu(Menu menu) %7B%0A        // Inflate the menu; this adds items to the action bar if it is present.%0A        getMenuInflater().inflate(R.menu.menu, menu);%0A        return true;%0A    %7D%0A%0A    @Override%0A    public boolean onOptionsItemSelected(MenuItem item) %7B%0A        int id = item.getItemId();%0A%0A        if (id== R.id.action_github)%7B%0A            String gitHubLink = %22https://github.com/qodrorid/android-sql-crud%22;%0A%0A            Intent i = new Intent(Intent.ACTION_VIEW);%0A            i.setData(Uri.parse(gitHubLink));%0A            startActivity(i);%0A        %7D%0A%0A        return super.onOptionsItemSelected(item);%0A%0A    %7D%0A%0A
     public void 

add menu github