package com.shakej.custom.graph.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.shakej.custom.graph.R;

public class MainActivity extends Activity
{
  @Override
  protected void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    ((Button) findViewById(R.id.btn_circle_graph)).setOnClickListener(new OnClickListener()
    {
      @Override
      public void onClick(View v)
      {
        startActivity(new Intent(MainActivity.this, CircleGraphActivity.class));
      }
    });
    ((Button) findViewById(R.id.btn_water_graph)).setOnClickListener(new OnClickListener()
    {
      @Override
      public void onClick(View v)
      {
        startActivity(new Intent(MainActivity.this, WaterGraphActivity.class));
      }
    });
  }
}

@@ -117,17 +117,97 @@
 oid.
-os.Bundle
+net.Uri;%0Aimport android.os.Bundle;%0Aimport android.view.Menu;%0Aimport android.view.MenuItem
 ;%0Aim
@@ -1049,10 +1049,447 @@
 %7D);%0A  %7D%0A
+  %0A  %0A  @Override%0A  public boolean onCreateOptionsMenu(Menu menu)%0A  %7B%0A    getMenuInflater().inflate(R.menu.main, menu);%0A    return true;%0A  %7D%0A  %0A  %0A  @Override%0A  public boolean onOptionsItemSelected(MenuItem item)%0A  %7B%0A    String url = %22https://github.com/ShakeJ/Android-Circle-Graph%22;%0A    Intent i = new Intent(Intent.ACTION_VIEW);%0A    i.setData(Uri.parse(url));%0A    startActivity(i);%0A    return super.onOptionsItemSelected(item);%0A  %7D%0A  %0A
 %7D%0A

Add option menu