what is the recording format of Intent .RECORD_SOUND_ACTION?

by zeeshan » Thu, 05 Mar 2009 05:20:49 GMT


Sponsored Links
 Hi,

can anyone tell me what is the default format of android recording.
i have recorded an audio clip but dont know how can i check its
extention?

i am using this activity

Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);

i need mp3/wav format, is it the same or do i need to convert it? how?

please reply me

thanks.

--~--~---------~--~----~------------~-------~--~----~



what is the recording format of Intent .RECORD_SOUND_ACTION?

by Dave Sparks » Thu, 05 Mar 2009 15:59:40 GMT


 The only audio format supported on G1 is AMR format (raw .AMR file).



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


what is the recording format of Intent .RECORD_SOUND_ACTION?

by zeeshan » Thu, 05 Mar 2009 17:20:49 GMT


 thanks for the reply Dave, i was really waiting for it.
is there any way to transcode it in mp3 after record finish.

i need this kind of output:

Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);

protected void onActivityResult(int requestCode, int resultCode,Intent
data) {

if(requestCode == SELECT_AUDIO){
                        if (resultCode == RESULT_CANCELED) {


                            } else {

                                if (data != null) {


                                        Uri RecordedAudio = data.getData();
                                     convertInMp3(Uri);

                                }

                            }
                }

}

?





--~--~---------~--~----~------------~-------~--~----~



what is the recording format of Intent .RECORD_SOUND_ACTION?

by zeeshan » Fri, 13 Mar 2009 17:27:47 GMT


 any solution plz?





--~--~---------~--~----~------------~-------~--~----~



what is the recording format of Intent .RECORD_SOUND_ACTION?

by bw » Mon, 13 Apr 2009 02:40:21 GMT


 Try looking at the source code for RingDroid:
 http://code.google.com/p/ringdroid/source/checkout 

Particularly the CheapAMR and CheapMP3 classes which can read/write
these formats:
 http://code.google.com/p/ringdroid/source/browse/ #svn/trunk/src/com/ringdroid/soundfile








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How can I use different row view for selected or unselected list item?

My intent was to use different view defined in xml when an item is
clicked.

I overwritten getView method in my child class of SimpleCursorAdapter:

        @Override
        public View getView(int position, View convertView, ViewGroup parent)
{

                if (position == mSelectedItemPos) {
                        Log.v(_TAG, "Highlight position " + position);
                        
setViewResource(R.layout.expense_his_list_row_hightlighted);
                } else {
                        Log.v(_TAG, "un-highlight position " + position);
                        setViewResource(R.layout.expense_his_list_row);
                }
                View newView = super.getView(position, convertView, parent);
                return newView;
       }

But it did not work as expected unless the activity is restarted.

Do not know why

and there's better choice to load different view for list item
dynamically?

thanks

-- 

2. Video streaming from android mobile phone to a remote computer

Hello everyone,

The problem I have is in the implementation of a video streaming
application. What I need to do is to stream live what I record with
the androids' camera, to a remote computer. I managed to establish a
connection between the mobile phone and the computer, but I do not
know how to send the video.

 I searched through forums, and I found out that in order to send a
streaming video you have you use the ParcelFileDescriptor. So I
created an instance of MediaRecorder with encoding H263 and .mp4 file
format, I created a Socket and then I created a new
ParcelFileDescriptor connecting it with the socket. If that is correct
then the android application that I created is functional.

 What I don't know now is what to do at the side of the computer in
order to receive and view the streaming video. I tried using JMF, but
it doesn't support .mp4 video files. What do you suggest me to do? Or
where to look in order to find a solution?

Thank you in advance,
Christina

-- 

3. How to get Android Source code?

4. Killi Process with files on SD card

5. HELLO I HAVE THIS QUESTION????(ABOUT ANATOMY):

6. Theme.Dialog - Remove Title Area?

7. How to keep a service running to listen for incoming and outgoing calls