create custom score
<p>I want to make a tennis score app but i don't know how to create a custom score (0, 15, 30, 40, advantage)?</p>

<p>Here is the code I've used with an other "counter" app:</p>

<pre><code>public class counter extends Activity {

    // Private member field to keep track of the count
    private int Count = 0;


    /* Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        final TextView countTextView = (TextView) findViewById(R.id.TextViewCount);
        final Button countButton = (Button) findViewById(R.id.ButtonCount);

        countButton.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                Count++;
                countTextView.setText("" + Count);
            }
        });
    }
}
</code></pre>
