【发布时间】:2010-11-22 20:47:26
【问题描述】:
在 android 中,有没有一种方法可以在向用户显示布局时(加载时)有条件地播放一个小的 .wav 文件,如下所示:
if (randonGen == 3) {
//play small wav sound here
mTheMessage = (TextView) findViewById(R.id.resultText);
mTheImageButton = (ImageButton) findViewById(R.id.face_image);
mTheImageButton.setBackgroundDrawable(bitDraw);
mThePicture.setImageBitmap(cameraBitmap);
}
从我的资产文件夹中调用我的sound.wav 的代码在哪里被调用和播放?
【问题讨论】: