protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mListView = (ListView) findViewById(R.id.id_listview);
mAudioRecorderButton = (AudioRecorderButton) findViewById(R.id.id_recordButton);
mAudioRecorderButton.setAudioFinishRecorderListener(new AudioRecorderButton.AudioFinishRecorderListener() {
@Override
public void onFinish(float seconds, String filePath) {
Recorder recorder = new Recorder(seconds,filePath);
mDatas.add(recorder);
Toast.makeText(getApplicationContext(),mDatas.size()+"-"+seconds+":"+filePath,Toast.LENGTH_SHORT).show();
// mAdapter.notifyDataSetChanged();
// mListView.setSelection(mDatas.size()-1);
}
});