And what about the error? Logcat?

On Oct 24, 6:41 pm, Asım Turgut SOMUNCUOĞLU
<asimturgut.somuncu...@gmail.com> wrote:
> hi  jeremy,
> my code is ;
> import java.io.IOException;
>
> import android.app.Activity;
> import android.media.MediaRecorder;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.Button;
>
> public class SesdenemeActivity extends Activity {
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
>
> final MediaRecorder MRX = new MediaRecorder();
> MRX.setAudioSource(MediaRecorder.AudioSource.MIC);
> MRX.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
> MRX.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> MRX.setOutputFile("C:/Users/PC/Desktop/android/sesdeneme");
> try {
> MRX.prepare();} catch (IllegalStateException e) {
>
> // TODO Auto-generated catch block
> e.printStackTrace();} catch (IOException e) {
>
> // TODO Auto-generated catch block
> e.printStackTrace();
>
> }
>
> Button kaydet= (Button) findViewById(R.id.button1);
> kaydet.setOnClickListener(new View.OnClickListener() {
>
> public void onClick(View v) {
> // TODO Auto-generated method stub
>
> MRX.start();
>
> }
> });
>
> Button dur= (Button) findViewById(R.id.button2);
> dur.setOnClickListener(new View.OnClickListener() {
>
> public void onClick(View v) {
> // TODO Auto-generated method stub
>
> MRX.stop();
> MRX.release();
>
> }
> });
> }
> }
>
> manifest.xml file;
>
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
> package="Uygulamalarim.Sesdeneme"
> android:versionCode="1"
> android:versionName="1.0">
> <uses-sdk android:minSdkVersion="10" />
>
> <application android:icon="@drawable/icon" android:label="@string/app_name">
> <activity android:name=".SesdenemeActivity"
> android:label="@string/app_name">
> <intent-filter>
> <action android:name="android.intent.action.MAIN" />
> <category android:name="android.intent.category.LAUNCHER" />
> </intent-filter>
> </activity>
>
> </application>
> <uses-permission
> android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
> <uses-permission
> android:name="android.permission.RECORD_AUDIO"></uses-permission>
> <uses-permission
> android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission>
> <uses-permission
> android:name="android.permission.WAKE_LOCK"></uses-permission>
> <uses-permission
> android:name="android.permission.READ_PHONE_STATE"></uses-permission>
> <uses-permission
> android:name="android.permission.INTERNET"></uses-permission>
> </manifest>
> thank u for interesting
>
> 2011/10/24 Jeremy Dagorn <jeremy.dag...@gmail.com>
>
>
>
>
>
>
>
> > Hi,
>
> > Could you give some code and raised error(s)?
>
> > Jeremy
>
> > On Oct 21, 8:36 pm, ktuluceng <asimturgut.somuncu...@gmail.com> wrote:
> > > how to make speech recording application for android please help me my
> > > cod is true but ı dont understand application has stopped  erorr :S
>
> > > ı folllow this linkhttp://
> >www.brighthub.com/mobile/google-android/articles/40737.aspx
> > > and apply my application but take a error please help me !!!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to