Search This Blog

23 April 2010

Radio button selection dialog

Building on the previous list-selection example, we will add a radio-button icon to the list.

Open MyActivity from the previous example and change this line:
builder.setItems(items, new DialogInterface.OnClickListener(){
builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener(){

The '-1' specifies which item to select by default. 0 would have been Red, -1 is none.

By default, the window will not close when they make a selection.  Replace this line:
with this line:


Redeploy (mvn clean install) and test.


  1. HI,
    Is there any way that we change voice of recorded audio and video in android. As there is a soundpool method in android , there we change voice deep voice and chipmunk.. What if I want change recorded voice to male computer voice and female computer voice. Is there any way to implement pitch , key in Android ? .Can we set voice before recording audio ?
    Is there any method to set pitch , key etc .

  2. Thank you for the simple Tutorial

  3. Hi.. Great tutorial! Thanks so much for making it simple and clear.