SoundBoard Problem: Please Look!

All your problems with Audio, Video and Images.

SoundBoard Problem: Please Look!

Postby klix666 » Fri Jun 10, 2011 12:04 am

public SoundManager mSoundManager;




public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main2);






// random mode button
ImageButton randommode = (ImageButton) findViewById(R.id.randommode);
randommode.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent intent = new Intent();
setResult(RESULT_OK, intent);
finish();
// random mode button
}
});


// LIST VIEW CODE
list = (ListView)findViewById(R.id.listmode);
list.setOnItemClickListener(this);
list.setAdapter(new ArrayAdapter(this,android.R.layout.simple_list_item_1,items));


}
// BUNDLE ENDS HERE--I CANT GET THE "onItemClick" IN THE BUNDLE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
public void onItemClick( AdapterView arg0, View v, int position, long arg3) {
Toast.makeText(this, "You Clicked " + items[position] ,Toast.LENGTH_LONG).show();
// LIST VIEW CODE


if (items[position]=="Tom")
{
mSoundManager.playSound(1);
}
}

}
klix666
Freshman
Freshman
 
Posts: 4
Joined: Wed Jun 08, 2011 1:53 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 5 guests