Android rate button syntax errors
<p>I get the errors Syntax error on token "marketrate", VariableDeclaratorId expected after this token... Uri.parse("https://market.android.com/details?id=com.synamegames.giveaway");</p>

<p>and</p>

<p>Syntax error on token(s), misplaced construct(s)...startActivity(market);</p>

<pre><code>        private void makeDialog() {     

        AlertDialog.Builder about = new AlertDialog.Builder(this);      

        about.setMessage("About The Giveaway");

        about.setPositiveButton("Rate", new DialogInterface.OnClickListener() {
            Intent market = new Intent(
                    "android.intent.action.VIEW", 

                startActivity(market);
            public void onClick(DialogInterface arg0, int arg1) {
//action
            }
        });

        about.setNegativeButton("Close", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface arg0, int arg1) {}
        });

        about.show();
    }

}
</code></pre>
