How To Make Custome Record View Meter?
i want make custome view meter which is spred when the user record the voice?? Does anyone know of any coding examples of a digital VU Meter for recording audio? Does anyone know o
Solution 1:
This is a Mediastore file means Audio Recording .just like click the button and start the recording
publicclassMediastoreActivityextendsActivity {
@OverrideprotectedvoidonCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Buttonbtn= (Button)findViewById(R.id.recordBtn);
btn.setOnClickListener(newOnClickListener(){
@OverridepublicvoidonClick(View view) {
startRecording();
}});
}
publicvoidstartRecording() {
Intentintt=newIntent("android.provider.MediaStore.RECORD_SOUND");
startActivityForResult(intt, 0);
}
@OverrideprotectedvoidonActivityResult(int requestCode, int resultCode, Intent data) {
switch (requestCode) {
case0:
if (resultCode == RESULT_OK) {
UrirecordedAudioPath= data.getData();
}
}
}
}
This is a mail.xml file create only one button
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"
>
<Button android:id="@+id/recordBtn"android:text="Record Audio"android:layout_width="wrap_content"android:layout_height="wrap_content" />
</LinearLayout>
Post a Comment for "How To Make Custome Record View Meter?"