package com.mc.phonefinder.usersettings;

import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;

import com.mc.phonefinder.R;
import com.mc.phonefinder.login.FindPhoneActivity;

public class FindPhoneInterface extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_find_phone_interface);
        ((Button) findViewById(R.id.nearbyUsers)).setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                startActivity(new Intent(FindPhoneInterface.this, NearbyUserView.class));
            }});
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_find_phone_interface, 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();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}

@@ -395,16 +395,351 @@
 ivity %7B%0A
+/*%0AFor the below: check if the setting is set for the user and if so let the user use the functionality.%0AView location - Referes to location column in Settings table%0ATake Picture - Referes to camera in Settings table%0AView nearby users - Refers to otherUsers in Settings table%0A%0AAlert my phone - Rings the phone to easily identify it%0A */
 %0A    @Ov

Comment on what to do in FindPhoneInterface - bharath you have to do the Alert my phone - should ring the phone when this is alerted.