FileDocCategorySizeDatePackage
DeleteItems.javaAPI DocAndroid 1.5 API2580Wed May 06 22:42:46 BST 2009com.android.music

DeleteItems

public class DeleteItems extends android.app.Activity

Fields Summary
private android.widget.TextView
mPrompt
private android.widget.Button
mButton
private int[]
mItemList
private View.OnClickListener
mButtonClicked
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        setVolumeControlStream(AudioManager.STREAM_MUSIC);

        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.confirm_delete);
        getWindow().setLayout(WindowManager.LayoutParams.FILL_PARENT,
                                    WindowManager.LayoutParams.WRAP_CONTENT);

        mPrompt = (TextView)findViewById(R.id.prompt);
        mButton = (Button) findViewById(R.id.delete);
        mButton.setOnClickListener(mButtonClicked);

        ((Button)findViewById(R.id.cancel)).setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                finish();
            }
        });

        Bundle b = getIntent().getExtras();
        String desc = b.getString("description");
        mItemList = b.getIntArray("items");
        
        mPrompt.setText(desc);