0
我的项目的开发平台的文件是谷歌API7。它可以与下面的2.2的版本上运行设备,但是当我安装上2.3版本以上,我的文件不能被保存在SD卡AudioRecord不能节省2.3
这是我的代码
class ButtonListener implements OnClickListener
{
public void onClick(View v)
{
if (v == startButton)
{
setTitle("Start Recording and transmitting the file");
bar.setMax(second);
updateBarHandler.post(updateThread);
startButton.setVisibility(View.GONE);
exitButton.setVisibility(View.GONE);
stopButton.setVisibility(View.GONE);
}
if (v == stopButton)
{
setTitle("Stop");
handler.removeCallbacks(updateThread);
recorderInstance.setRecording(false);
recorderInstance = null;
startButton.setVisibility(View.VISIBLE);
exitButton.setVisibility(View.VISIBLE);
}
if (v == exitButton)
{
Intent intent = new Intent();
intent.setClass(MyRecorder.this, User.class);
startActivity(intent);
MyRecorder.this.finish();
}
}
}
如果您发现相对的答案,然后接受它。 – 2012-08-09 09:06:40