Android :: Media Recorder Class Setting Audio Source / Unsupported Parameter

Jun 9, 2010

I'm new in Android development and I have the next question/problem. I'm playing around with the Media Recorder class to record just audio from the microphone. I'm following the steps indicated in the official site:
http://developer.android.com/reference/android/media/MediaRecorder.html

So I have a method that initializes and configure the MediaRecorder object in order to start recording. Here you have the code:
this.mr = new MediaRecorder();
this.mr.setAudioSource(MediaRecorder.AudioSource.MIC);
this.mr.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
this.mr.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
this.mr.setOutputFile(this.path + this.fileName);
try { this.mr.prepare();
} catch (IllegalStateException e) { Log.d("Syso", e.toString());
e.printStackTrace();
} catch (IOException e) { Log.d("Syso", e.toString());
e.printStackTrace();
}

When I execute this code in the simulator, thanks to logcat, I can see that the method setAudioSource(MediaRecorder.AudioSource.MIC) gives the next error (with the tag audio_ipunt) when it is called:
ERROR/audio_input(34): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
ERROR/audio_input(34): VerifyAndSetParameter failed

And then when the method prepare() is called, I get the another error again:
ERROR/PVOMXEncNode(34): PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got Component OMX.PV.amrencnb handle

If I start to record by calling the method start(). I get lots of messages saying:
AudioFlinger(34):RecordThread: buffer overflow
Then after stop and release, I can see that a file has been created, but it doesn't seem that it been well recorded. Anyway, if I try this in a real device I can record with no problems, but I CAN'T play what I just recorded. I guess that the key is in these errors that I've mentioned before.

Android :: Media Recorder Class Setting Audio Source / Unsupported Parameter


Android :: Media Recorder Class To Record Audio / Permission Denied

Jun 4, 2010

I'm new in Android development and I have the next question/problem. I'm playing around with the Media Recorder class to record just audio from the microphone. I'm following the steps indicated in the official ://developer.android.com/reference/android/media/MediaRecorder.html
So I have a method that initializes and configure the Media Recorder object in order to start recording. Here you have the code:
//initializes audio recorder
//configure the input sources
mrecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
//set the output format
mrecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
//set the audio encoding
mrecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT)

View 1 Replies View Related

Android :: Fusion Recorder - Audio Recorder

Nov 6, 2010

We are a new company that is focused on Android development. We have completed and uploaded our Fusion Recorder application into the Android Market. We've worked hard to make sure that it is a reliable product and that it contains a solid set of features for version one (v.1). We are currently working on the designs for our our Website, facebook, and Twitter pages since posting our application. We look forward to adding features as we move forward.

We are interested in feedback from users and want to make sure our product(s) are as defect free as possible. So, if you do run into an issue, big or small, please shoot us an email at our support email.

Here are a some screen shots that show off the Fusion Recorder User Interface.

Also, if you don't see a feature you like please email that to us so we can add it to our Feature Request database. It may not be the next week we add it (we take testing seriously, which takes time). But we definitely will review such requests, which we understand are valuable.

Also, we were able to test this on a few Android Smartphones, but we are looking forward to seeing if there are any issues on phones we have not tested on. So, if you run into an issue please include, at the least, the Android Smartphone manufacturer, product name, Android OS version number (e.g. Android 2.2).

View 4 Replies View Related

Android :: Getting Streaming Audio To Play With Media Player Class?

Jul 21, 2010

I am currently new to android development I been working on the examples in the Dev Guide in the android website. I want to get a stream from a server I have to play in the emulator when I insert the url it doesn't seam to want to play. My question is there a way to get the emulator to play audio or is it all enabled also does MediaPlayer require a special kind of format like mp3 or ogg? his is the code i am running on my 'onCreate()' method.
MediaPlayer mp - new MediaPlayer();
mp.setDataSource(MY_URL_);
mp.prepare();
mp.start()

View 1 Replies View Related

Android :: Pass A Class Reference As Parameter To An Activity?

Mar 9, 2009

I want to pass a class reference to an activity, and then the activity will construct the view according to the content of the class.

How could I implement this function?

View 3 Replies View Related

Android :: Pass In Object Java Class Embedded In As Parameter

Apr 19, 2010

I'm building an android application, which has a list view, and in the list view, a click listener, containing an onItemClick method. So I have something like this:

public class myList extends ListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
getListView().setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
/* Do something*/
}
}
}

Normally, this works fine. However, many times I find myself needing too preform an application using the outer class as a context. thusfar, I've used: parent.getContext(); to do this, but I would like to know, is that a bad idea? I can't really call: because it's not really a subclass, just an embedded one. So is there any better way, or is that considered cosure? Also, if it is the right way, what should I do if the embedded method doesn't have a parameter to get the outside class?

View 2 Replies View Related

Android :: GetView Always Giving Null ConvertView Parameter In Preference Class UI

Jul 2, 2010

The preference type of UI is used in many Google built-in applications for example Bluetooth , Wifi etc. And the getView of the preference is used to set the image or text to make it visible in the UI screen.

the getView for the pref type UI is defined as below in framework code : ->

CODE:..............................

Where the convertView is not getting recycled and every time whenever the user is scrolling the list up and down, convertVIew comes out to be null.Therefore by logic inflation of the UI also happens all the time in onCreateView().This is a kind of shortcoming in terms of memory utilization , hence in a discussion (MAKE YOUR UI FAST AND EFFICIENT) where Romain Guy has mentioned about the tricks to increase the app performance doesn't hold good for preference type of UI.

View 2 Replies View Related

Android :: Video Camera Recorder - Source And Encoder Lines

May 26, 2009

I've been trying to develop an application for the android 1.5 sdk version that allows the user to simply recorder a video but it has been a long road. I can record audio with the simple example on the android developers website but when I put the VideoSource and the VideoEncoder lines it gives a 100 error that means that the Camera server died. Here is an example of the code.
recorder.setCamera(mCamera); recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile("/sdcard/dcim/Camera/test.3gp");
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
recorder.prepare(); recorder.start(); ...

Here is the debug error messages:
05-26 11:37:55.331: INFO/ServiceManager(30): service 'media.audio_flinger' died 05-26 11:37:55.331: INFO/ServiceManager(30): service 'media.player' died 05-26 11:37:55.331: INFO/ServiceManager(30): service 'media.camera' died 05-26 11:37:55.331: WARN/MediaPlayer(690): MediaPlayer server died! 05-26 11:37:55.331: ERROR/MediaPlayer(690): error (100, 0) 05-26 11:37:55.331: WARN/Camera(1462): Camera server died! 05-26 11:37:55.331: WARN/Camera(1462): ICamera died 05-26 11:37:55.341: ERROR/MediaPlayer(690): Error (100,0) 05-26 11:37:55.341: INFO/SONGSEARCH(690): album="The Assassination of Jesse James" 05-26 11:37:55.391: INFO/DEBUG(1485): debuggerd: Apr 21 2009 13:42:23 05-26 11:37:55.401: INFO/ActivityManager(60): Displayed activity org.reccamera.com/.camera: 5276 ms 05-26 11:37:55.421: ERROR/Camera(1462): Error 100 05-26 11:37:55.421: WARN/AudioSystem(60): AudioFlinger server died!

View 2 Replies View Related

Android :: Audio Recorder - Initialization Check Failed

May 28, 2009

With version 1.5, I keep getting this error
05-29 01:36:39.440: ERROR/AudioRecord-JNI(1280): Error creating AudioRecord instance: initialization check failed.
05-29 01:36:39.450: ERROR/AudioRecord-Java(1280): [android.media.AudioRecord] Error code -20 when initializing native AudioRecord object.
and then:
05-29 01:36:39.630: ERROR/AndroidRuntime(1280): java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord.

My code:
ar_test = new AudioRecord(MediaRecorder.AudioSource.MIC, 11025,
AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_8BIT, 200000);
ar_test.read(ar_buffer, 0, 150000); ar_test.startRecording();
toneTimer.setTimer(10000); toneTimer.countdownTimer(); ar_test.stop();

View 4 Replies View Related

Media : How Do I See Photos Sent From Iphone / "unsupported Media Type"

Sep 21, 2010

My friend sent me a picture via his iphone. He simply selected send to a friend, punched in my phone number and it was sent. Thus, i'm guessing its MMS.

I cannot see the image; it gives me an "unsupported media type".

Can anyone give any advice on how I would see the sent image?

EDIT: I should add this question: Do any of you fellow android users have this same problem? Do any of you NOT have this problem?

View 5 Replies View Related

Samsung Galaxy S :: Unsupported Format For Mp3 From Windows Media Player 12

Aug 28, 2010

Samsung Galaxy S getting "Unsupported file format" on .mp3s in AllShare (DLNA). Want to stream music from Windows 7 computer to Android device. Connected AllShare to Windows Media Player 12 over WiFi G network to "Play file from server on my phone". I can browse PC media folders from the Galaxy S. In AllShare, I click an .MP3 from my PC library, add it to the AllShare playlist, then the circle spins for about 10 seconds and I finally get the pop-up error "Unsupported file format." All .mp3's are DRM-free unprotected files. They play fine directly from the MicroSD card through the standard Android Music app. Disconnected/reconnected WiFi, same results. Read a few other posts on various forums, a few people have the same issue. Looks like fewer are even trying to use DLNA like this. Heard plenty of "hypothetical" troubleshooting steps but still searching for someone who's actually tried the steps & got it to work. Some had success with other DLNA media servers or by using different software altogether. I want to specifically stream music from a PC to my SGS using DLNA & WMP. Great for portability. Any "dittos"? Resolutions? By the way this device is AWESOME (Sprint Epic 4G) Also I realize this post is verbose; I want it to easily appear for others' search results. Please feel free to copy, paste & post in a more appropriate forum or thread.

View 3 Replies View Related

Media :: Can't Download Unsupported Content On Moto Droid / Make It Possible?

Dec 4, 2009

I was able to download unsupported content (example: .exe files) to my blackberries. So far when trying to do so far on my moto Droid, it says download failed. Is this possible @ all?

View 9 Replies View Related

Android :: How To Get Media Recorder In MP3 Format

Apr 10, 2009

Would be more useful than AMR / MP4. Also would be compatible with the very handy source code for RingDroid.

View 2 Replies View Related

HTC EVO 4G :: Low Quality Audio Ever Be Fixed For Video Recorder?

Jun 15, 2010

The audio being recorded is horrible. Will there ever be a fix for that because I'm considering taking my EVO back.

View 3 Replies View Related

Android :: Media Recorder Prepare Causes Segfault

Mar 28, 2010

I have a situation where my MediaRecorder instance causes a segfault. I'm working with a HTC Hero, Android 1.5+APIs. In the log i see (after the segfault announcement) a register dump and then a numbered list #00 libmedia_jni.so to #18 linker, then a stack trace. My Eclipse won't let me copy the log buffer, but I've done three screen captures that sum it up. If you have time to examine, send me a direct e-mail.<pre><code> if (mRecorder == null) mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);// mRecorder.setVideoSize(640, 480); // mRecorder.setVideoFrameRate(20); mRecorder.setPreviewDisplay(surfaceHolder.getSurface()); mRecorder.prepare();mRecorder.start(); </code></pre> I've tried other variants, including H263 and 3gp. What else can I do to debug this? Everythin g seems fine up to prepare(). I tried adding the onErrorListener, but it seems to interfere with the MediaPlayer's onErrorListener. I'm using a 4-second beep-count to prepare for auto triggering of the camera, and when I enable the error handler for the MR everything in my handler state machines goes awry.

View 4 Replies View Related

Android :: How To Initialize Media Recorder In Background?

Aug 5, 2009

I am building a camera app, where photos and videos are continuously being captured and saved to the SD card. The videos are short (few minutes), and their length are preset with setMaxDuration(). When Media Recorder.MEDIA_RECORDER_INFO_MAX_DURATION_REACHED is reached, the video is saved, and a new sequence is initialized with something like: The whole process works fine, while the main activity is in the foreground. But, when I go to another activity (e.g. settings), the video recording works in the background only until max duration is reached. The file is saved, but a new sequence can not be started because prepare() fails. setPreviewDisplay() needs to be there, but it doesn't like not having a proper surface to attach to. I tried to use a dummy Surface, a dummy SurfaceHolder, or reuse the Camera with mMediaRecorder.set Camera(), but nothing works. Is there a way to initialize Media Recorder in the background?

View 2 Replies View Related

Media :: Video Recorder Frames Per Second?

Apr 10, 2009

So with Cupcake looming, does anyone know what kinda Frames per second the video recorder will have?

View 2 Replies View Related

Media : Way To Download A Video Recorder To Tmobile G1?

Oct 19, 2008

can anyone tell me if there is going to be a way to download a video recorder to the tmobile g1, since there isn't one on the phone as is?

View 7 Replies View Related

Android :: Want To Look At Source Code For ListAdapter Class Without Downloading

Nov 22, 2010

I want to look at the source code for the ListAdapter class without downloading the entire Android source code tree. Is there a way to do that?

View 4 Replies View Related

Android :: App Serves As Both - Call Recorder And A Regular Voice Recorder

Aug 3, 2010

What would y'all recommend? I see tons of them on AppBrain, but it doesn't seem that any of them do both things, and the few that do have ridiculous time limits o the records like 2-4 minutes.

View 7 Replies View Related

Android :: JNI CALL Change Jclass Parameter Or Obtain Jobject From Jclass Parameter?

Nov 19, 2010

I'm testing some functions with Android, JNI and NDK. I have the following JAVA class:

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class JNITest extends Activity {
private int contador;
/** Called when the activity is first created. */...........................

View 1 Replies View Related

Android :: Source Code (or Git File) For ContactsContract.QuickContact Class?

Jul 15, 2010

What is the .git file corresponding to ContactsContract.QuickContact class?

View 2 Replies View Related

Android :: Setting Up This Google Maps Class?

May 30, 2010

Firstly this has turned out to be quite a long post so please bear with me as its not too difficult but you may need to clarify something with me if i haven't explained it correctly.
So with some help the other day from guys on this forum, i managed to partially set up my 'mapClass' class, but i'm having trouble with it and its not running correctly so i would like some help if possible. I will post the code below so you can see.

What Ive got is a 'Dundrum' class which sets up the listView for an array of items.

Then ive got a 'dundrumSelector' class which I use to set up the setOnClickListener() methods on the listItems and link them to their correct views.

THIS IS MY DUNDDRUM SELECTOR CLASS....

CODE:...........

Then what i did was set up static ints to represent the buttons which you can see at the top of this class, the reason for this is because in my mapClass activity I just want to have one method, because the only thing that is varying is the coordinates to each location.
ie. i dont want to have 100+ map classes essentially doing the same thing other than different coordinates into the method.

So my map class is as follows...

CODE:...............

Now this is where my problem is. The onClick() events don't even work from the listView to get into the correct views. I have to comment out the methods in 'DundrumSelector' before I can get into their views.

And this is what I dont understand, firstly why wont the onClick() events work, because its not even on that next view where the map is.

I know this is a very long post and it might be quite confusing so let me know if you want any clarification..

Just to recap, what i'm trying to do is just have one class that sets up the map coordinates, like what i'm trying to do in my 'mapClass'.

View 1 Replies View Related

Android :: Inject Audio To Microphone Source During A Call?

Sep 29, 2009

Is possible to inject audio such as mp3 in the output of microphone streaming? I've found an application : spoofApp that change the voice during a call. How is possible?

View 3 Replies View Related

Android :: Could Not Get Audio Input For Record Source / Solution For This?

Mar 29, 2010

I'm getting the above error message when i run below code. please let me know if you have found any solution for this? code...

View 2 Replies View Related

Android :: Audio Track Class Streaming Mode

May 18, 2010

I am trying to playback voice data which is received in form of RTP packets in my application. The class
Receiver.java extends thread is playing back the audio. The question is
1. For real time streaming operation how to configure the write(byte[], int offsetInBytes, int sizeInBytes) methods?
2. What is the function and purpose of getPlaybackHeadPosition() What is playback head position kindly explain! Note: The RTP packets I am receiving are not from a traditional Datagram Socket but rather then from Ad Hoc Network so there is unknow delay for receiving the RTP packets. I need to design the Receiver class to play back the voice as soon as packets are recieved. Kindly help me in this regard 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+ unsubscribe@ google groups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 3 Replies View Related

Games :: Setting Up Open Source 3D Android Game Engine / Want License?

Mar 29, 2010

I am setting up an open source 3D game engine for android. What license should we use? Thought we'd go with something like BSD or maybe GPL/LGPL, but getting confused about it. Want a license that helps developers - doesn't hinder them - and an engine that's as open as possible.

View 2 Replies View Related

Android : Setting A Debug Breakpoint At First Line Never Runs Through Code In Class

Jul 21, 2010

I set a toggle breakpoint at line 36 of the main class, of APIDemos 8, the debug begins at the OnCreate but never processes another line in the class. Why is that?

Here's the code starting a line 36. Code...

View 1 Replies View Related

Android :: Compiling Source Code Or Importing Private Class File Into Android.jar

Feb 16, 2010

Some classes are NOT PUBLIC like android.os.ServiceManager, android.view.IWindowManager, etc, they are implemented in the mobile devices, but not present in the SDK .jar. This is because these classes are private APIs . now please tell me is there any way like compiling source code or importing private class file into android.jar so that i can use this private APIs.

View 3 Replies View Related

Android :: Want Media Player Source Code

Mar 27, 2010

Send the media player source code to me.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved