package com.androidsx.rateme.demo1;

import android.app.Activity;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import androidcourse.t4.t6.R;

import com.androidsx.rateme.DialogRateMe;
import com.androidsx.rateme.RateMeDialogTimer;

public class SampleProject extends Activity {
    private Button buttonRateMe;
    private static final String MY_PACKAGE_NAME = "com.androidsx.smileys";
    
    
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_contacts); 
		buttonRateMe = (Button)findViewById(R.id.buttonrateme);		
		buttonRateMe.setOnClickListener(new OnClickListener() {          
            @Override
            public void onClick(View v) {
                AlertMenu();            
            }
        });
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.delete, menu);
		return true;
	}
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Take appropriate action for each action item click

		switch (item.getItemId()) {
		case R.id.RateMe:
		    AlertMenu();

		default:
			return super.onOptionsItemSelected(item);
		}
	}
	
    @Override
    protected void onStart() {
        super.onStart();
        RateMeDialogTimer.onStart(this);
        if (RateMeDialogTimer.shouldShowRateDialog(this)) {
            DialogFragment dialog = DialogRateMe.newInstance(
                    MY_PACKAGE_NAME, getString(R.string.email_address));
            dialog.show(getFragmentManager(), "dialog");
        }
        
    }
	
    private void AlertMenu (){
    	boolean showShareButton = false;
	    DialogFragment dialog = DialogRateMe.newInstance(
<<<<<<< HEAD
	            MY_PACKAGE_NAME,LibraryConstants.EMAIL, showShareButton);
=======
	            MY_PACKAGE_NAME, getString(R.string.email_address));
>>>>>>> master
	    dialog.show(getFragmentManager(), "dialog");
	}
}

@@ -2018,101 +2018,8 @@
 e(%0D%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A%09            MY_PACKAGE_NAME,LibraryConstants.EMAIL, showShareButton);%0D%0A=======%0A
 %09   
@@ -2081,26 +2081,27 @@
 ess)
-);%0D%0A%3E%3E%3E%3E%3E%3E%3E master
+,showShareButton);%0D
 %0A%09  

Fix problem in SampleProyect