Your code in unclear. Also you are not even starting the Activity
.
This two lines should work perfectly.
Intent marketIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse("market://details?id="+"com.androidsleepmachine.gamble"));
startActivity(marketIntent);