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?

Android :: How to initialize Media Recorder in background?


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

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

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

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

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 :: 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.

View 5 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 :: 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

Media :: How To Force App To Run In Background?

Nov 1, 2010

I use myPlayer to stream BBC iplayer content, and it works brilliantly, but if i lock the phone the app closes, or if i switch to another app it also closes. this is annoying as i want to stream radio in the background. on my old symbian phone i could do this easily. The reason for this, as anyone with a HTC desire wil know, is the formatting is crap and on a large number of desires, doesnt work at all.

View 3 Replies View Related

Android :: Initialize Preferences From XML In Main Activity

May 20, 2010

My problem is that when I start application and user didn't open my PreferenceActivity so when I retrieve them don't get any default values defined in my preference.xml file. Code...

View 3 Replies View Related

Motorola :: Android AudioRecord Fails To Initialize

Nov 12, 2010

I've been having an issue with using AudioRecord for Android. I've read as much as I can find online about it, but I cannot seem to get a good initialization. I have tried the Android 2.2 emulator, 1.5 emulator and my phone, an HTC Incredible running Froyo. The emulators and my phone fail initialization. I've tried sampling rates of 8000, 11025, and 44100, formats of CHANNEL_IN_MONO/STEREO and CHANNEL_CONFIGURATION_MONO/STEREO, 8bit and 16bit encoding (8 bit makes the getMinBufferSize fail), and Audio Source of MIC and DEFAULT. All result in the variable test becoming 0 after running a get state(failed initialization). It seems from everything I've read that this should correctly initialize the object. I have played around with the multiplier on buflen, to have it range from 512 (the result of the function) to 102400 because I had heard that HTC devices require something above 8192. For testing my problem I made a new, small project that recreates my problem as simply as possible. I pull out the constants needed into local ints then run the constructor and access the getState method for checking if it worked. Code...

View 1 Replies View Related

Android :: Need To Re-initialize / Kill A Core Process Silently?

Nov 24, 2009

What is the quickest way to restart or re-init the launcher a core process without the "you've killed the a core process unexpectedly" notification message?

View 2 Replies View Related

Android :: Editor Layout - Initialize Class Sun.awt.X11.XToolkit

Feb 21, 2010

I m developing an android app, i ve had a problem with the layout editor. I m using eclipse 3.5.1 for RCP/plugin developers, the android developers kit version 0.9.5 and jdk 1.6 in ubuntu 8.04 hardy heron. I ve been working good until one day i had to modificate my UI. when i tried to see my main.xml layout i found the following error: Null Pointer Exception then NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit. I was looking for a solution but i didn't find so i reintalled all. Eclipse, ADT, SDK and Java. First it (layout) looked to work again but in two days it broke again. I m so frustrated cause i dont know what i do to get this error. First it works then don t .why?

View 3 Replies View Related

Android :: Initialize Sender ID For C2DM Without Using A Hard-coded Value?

Oct 18, 2010

I'm adding Android C2DM to a Android library project. I started with the com.google.android.c2dm package that is included with JumpNote and Chrome To Phone. In order to use this package, you have to subclass the C2DMBaseReceiver service which takes the Sender Id as an argument to it's constructor. In JumpNote, this argument is initialized using a hard-coded static variable in a config class. However, in an Android library project, which may be used by multiple concurrently running apps I don't think I can use a hard-coded static variable (that is, I believe it could lead to problems when/if multiple apps are trying to access/modify the static variable). I tried to think of a way to initialize the Sender Id without using a static variable and am stumped so far.The obvious solution would be to use the Manifest or a Resource string or a combination of the 2. For example, in strings.xml I might have a "ac2dmSender" string, which is accessed in a meta-data child of the C2DMReceiver service declaration in the manifest. However, it seems that you cannot get a reference to the PackageManager or ResourceManager from a static context, so there is no way for me to then retrieve the meta data in such a way as to pass it in to the constructor of C2DMBaseReceiver.

View 1 Replies View Related

Android :: Can I Initialize An Array List From Data Specified In Xml Resource File?

Mar 9, 2009

Is is possible to specify data in xml resource file and initialize ArrayList from it? I am looking for a way to use the ArrayList with a SimpleAdapter to bind to a ListView. I am wondering if there is a way to specify my data in xml resource file and init ArrayList from it.

View 6 Replies View Related

Android :: Company Field Doesn't Initialize / Add Contacts Via Intent?

Sep 16, 2009

I am trying to add new contact using intent...

This code works but not adds several phones and company field doesn't initialize. What I do wrong?

View 2 Replies View Related

Motorola :: Initialize A Class Instance?

Sep 27, 2010

I'm trying to initialize an instance of class console Droid with console Droid console = new console Droid();, but it throws a class, interface, or enum expected compile error. What's the right way to initialize the class?

View 4 Replies View Related

General :: Camera Is Unable To Initialize?

Aug 18, 2011

For some reason the camera and Camcorder no longer work. I have a Droid x2 and recently updated the software.

View 3 Replies View Related

General :: Camera App Stopped Working - Won't Initialize

Aug 5, 2012

My camera will not start up from any of the camera app "buttons". This happened sometime around/after ICS was installed. Is this a problem with ICS or, have I got a broken phone app? What did I do besides go to the Verizon store - that is a last ditch effort.

View 7 Replies View Related

Samsung Captivate :: Unable To Initialize DM While Checking For Updates

Jul 27, 2010

I've been reading a lot of people getting errors while trying to check for samsung updates on the Captivate. I experienced this as well. I narrowed the problem to various Task Manager apps killing the "Device Management" task that is native to the captivate and launches after each reboot. When this task is killed, you will receive the "DM Initialization Error. Check your network or Sim Card" message every time you try to check for an update. Solution: Reboot and exclude the Device Management process from any of your task killers.

View 5 Replies View Related

Android :: Android - How To Initialize A Variable Of Type - Location - Other Than Making It Equal To Null

Jun 6, 2010

I'm looking to test some code I've written and to do so I need to construct a variable of type Location and to give it a long / lat value but I'm unsure how I would do so.

View 1 Replies View Related

Android :: Android: How To Initialize MediaRecorder Without A Valid Surface For Video Preview

Aug 9, 2009

I am building a camera app, where videos are continuously being captured and saved to the SD card. The videos are short (few minutes), and their length are preset with setMaxDuration().

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, apparently because setPreviewDisplay() doesn't like not having a proper surface to attach to.

I tried to use a dummy Surface, a dummy SurfaceHolder, lockCanvas(), and various other tricks, but nothing works. Is there a way to initialize MediaRecorder without a valid surface?

View 3 Replies View Related

General :: Beats Audio - MusicFX Stopped Working / Cannot Initialize Equalizer

Apr 22, 2013

I had installed Beats Audio Installer which did improved the Quality of Sound on my Headsets and even Beats Headset were Supported...but it spoiled the sound of my phone Speaker.. that is.. Crackling and low sound on some Default Presets of MusicFX. so i had to uninstall it. after Removing Beats.. My Phone Speaker Problem got Fixed but.. MusicFX is working no longer. wen i choose sound effects in default ICS music Player. it Says "Unfortunately MusicFX stopped Working". i tried Clearing Cache and Data of Both Music player and MusicFX but nothing works. I even installed third party Equalizers but all crashes showing Same Message. I even Installed N7 Music player and when i select its Equalizer it says. "But we cannot Initialize Equalizer."

View 3 Replies View Related

Android :: Voice Recorder App Q?

Aug 22, 2010

I recorded some stuff with me on the drums on the native Voice Recorder App. 1 I can't find the file on my SD card, and 2 If I email it to myself it is in the format .amr which i don't recognize.3. Is there a better voice recorder? Better quality, different format files, editing, or easier to export?

View 3 Replies View Related

Android :: Voice Recorder To Text App

Apr 10, 2010

I'm having a hard time finding an app that functions as a Voice Recorder, but it also attempts to convert your recording into text. This would be very help imfho.

View 1 Replies View Related

Android :: Automatic Conversation Recorder

Sep 19, 2010

I am looking for an automatic conversation recorder application. What I need the application to do is to constantly 'listen' on the microphone, and as soon somebody around starts speaking (the noise level increases to high) it automatically starts to record the conversation. Once there are no more sounds coming in for e.g. a few minutes, it stops recording.

View 13 Replies View Related

Android :: DTMF / Sound Recorder

Oct 10, 2010

Are ther any existing Android application, working similar to the following working steps
1. Automatic receive the call, then
2. Play some sound out to the caller, wait for DTMF response, then
3. Record the caller sound (in the case that they permit, by pressing 1 as DTMF response)
4. Callee can play back the recoreded sound later.If there aren't any, is it possible now for provided Android SDK to develop it.

View 1 Replies View Related

Android :: Looking For Phone Call Recorder?

Jun 8, 2010

Any way to record phone calls beside google voice?

View 11 Replies View Related

Android :: Single Contact Sms Back Up And Call Recorder

Jul 29, 2010

Is there and app out there that will let me choose which contacts I'd like to back up sms and record the calls? Rather than all of them?

View 1 Replies View Related







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