Location:
Search - maketext.r
Search list
Description: 一个小记事本程序 自己搞的 像酷狗似地 有声音的~还有播放音乐的功能哈哈 -GOOD
Platform: |
Size: 211968 |
Author: 韩忠金 |
Hits:
Description: 实现录音,播放,以及Socket的上传和下载-public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)
setContentView(R.layout.main)
recordButton = (Button) this.findViewById(R.id.Button01)
stopButton = (Button) this.findViewById(R.id.Button02)
playButton=(Button)this.findViewById(R.id.Button03)
stopPlay=(Button)this.findViewById(R.id.Button04)
// 录音按钮点击事件
recordButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
File file = new File("/sdcard/"+ "CC"+ new DateFormat().format("ccccMMdd_HHmmss",Calendar.getInstance(Locale.CHINA))+ ".amr")
Toast.makeText(getApplicationContext(), "正在录音,录音文件在"+file.getAbsolutePath(), Toast.LENGTH_LONG)
.show()
Platform: |
Size: 36864 |
Author: yao jinling |
Hits: