package com.codemagic.powerhour;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;


public class Dashboard extends Activity {

    Preferences myPrefs;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dashboard);
        myPrefs = new Preferences(this);
    }

    // method to start playing random songs -- maybe add timer info here
    public void startPlaying(View v) {
        Toast.makeText(v.getContext(), "Clicked!", Toast.LENGTH_SHORT).show();


    }

    public void saveOpts(View v) {
        
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.dashboard, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}

@@ -675,24 +675,92 @@
 );%0A%0A%0A    %7D%0A%0A
+    // will save to the preferences or send directly to timer class%0A
     public v
@@ -782,24 +782,16 @@
 ew v) %7B%0A
-        
 %0A    %7D%0A 

Comment for info of save btn