Android :: How To Continuously Record In Memory Using A Circular Buffer

Dec 24, 2009

I'm trying to use the Media Recorder to have my application continuously record audio in memory (to a circular buffer of a known size). Indeed, I'd like to be able to play back the past 10 seconds of recorded based on a certain event in my program. Much of the Media API is designed to linearly record audio to a file. Has anyone an idea on how I could best do this with or without the default API?

Android :: How to continuously record in memory using a circular buffer

Android :: Continous Audio Recording In Memory Using Circular Buffer / SDK?

Jan 16, 2010

I'm writing an App that needs to continuously record audio in memory and email the last 30 seconds of audio when required. Much of the mediarecorder API is designed to store linear audio in files. Could anybody point me towards a way to continuously record audio in memory, using a circular buffer using the SDK?

View 2 Replies View Related

Android :: How To Record Audio From Mic In Raw Pcm Format Into A Buffer Using Native Libraries Directly

Oct 9, 2009

My application cannot handle the JNIE overhead, as I need to make 2 JNIE calls to the native C/C++ code for every 20msec. So I am trying to use the native media libraries and the realted C/C++ files provided by Android in the folder "//external/srec/audio/test" of the donut build. Ex. AudioHardwareRecord, AudioInRecord etc.. I am implementing all the calls in the native layer.

I am using the sampling rate as 8000 and want to read 160 samples (320 bytes) at a time.

I used the following values to create the AudioRecord..


It says "success" after creating this interface but I am getting the error "Bad Value" if I am doing the InitCheck.

And it is crashing once I start reading the samples or if I try to retrieve the configured sampling rate.

Has anybody tried to access this native code?

View 4 Replies View Related

Android :: Bitmaps And Out Of Memory Error (Allocating Back Buffer)

Sep 2, 2010

We are also having occasional problems with OutOfMemory errors in createBitmap. It tends to happen after a few orientation changes when we are allocating the backbuffers. I have made it so that it calls recycle() on the old bitmaps (if any exist) and does a System.gc() before allocating the new backbuffers. What we are doing is allocating a backbuffer that is twice the width and height of the screen so that we can quickly zoom in and out.

With a 854x480 screen this would presumably be 6.25MB in size. The problem as I see it is the 16 or 24MB maximum heap size per process. This is unreasonably small, especially on devices that have 512MB of RAM. Ideally the max heap size should be something like 64MB, or perhaps allow apps to request a larger heap size from the user.

View 14 Replies View Related

Android :: Automatic Circular Gallery ?

Jun 25, 2010

I am having gallery widget contains 1-10 images to slide. I know that when I stripe the screen , the images scroll from left to right. I want automatic circular gallery after 10 automatically start by first image.

Is there any automatic circular adapter or way ?


But I only see the first image is animated.. Take a look at my Video...

View 1 Replies View Related

Android :: Draw A Circular Region Of A Bitmap

Mar 26, 2009

In my Java code I am setting the content of an ImageView to a Bitmap. However, before doing so I want to clip the Bitmap to a circular region. How would I go about this? I've been looking for some API that would let me set the alpha channel of the Bitmap to fully transparent for all pixels outside the circular region.

View 4 Replies View Related

Android :: Want To Create Custom Circular Button / How To Do

Jun 7, 2010

I am trying to create one custom button which is circular and when i click that button i want that button FOCUS and COLOR change and i don't know how to do exactly so any one can help me or show me that code how to do?

View 2 Replies View Related

Android :: Make Gallery View As Circular?

Aug 2, 2010

How can i make gallery view as circular.i am able to done left to right infinite when i drag right to is showing end point.

View 1 Replies View Related

Android : Create A Closed (circular) ListView?

Feb 25, 2010

I want to create a customized ListView (or similar) which will behave like a closed (circular) one:

scrolling down - after the last item was reached the first begins (.., n-1, n, 1, 2, ..)
scrolling upward - after the first item was reached the last begins (.., 2, 1, n, n-1, ..)

It sounds simple conceptually but, apparently, there is no straightforward approach to do this.

I have already received an answer (from Streets Of Boston on Android-Developers google groups), but it sounds somehow ugly :) -

I did this by creating my own list-adapter (subclassed from BaseAdapter).

I coded my own list-adapter in such a way that its getCount() method returns a HUGE number.

And if item 'x' is selected, then this item corresponds to adapter position='adapter.getCount()/2+x'

And for my adapter's method getItem(int position), i look in my array that backs up the adapter and fetch the item on index:(position-getCount()/2) % myDataItems.length

You need to do some more 'special'stuff to make it all work correctly, but you get the idea.

In principle, it is still possible to reach the end or the beginning of the list, but if you set getCount() to around a million or so, this is hard to do :-)

View 3 Replies View Related

Android :: Create Circular Button In Droid?

Oct 12, 2010

I want to create a circular button having a plus and minus sign on to this and exactly used in Android
Contacts application like shown in the image as below.

View 2 Replies View Related

Android :: Circular Redirect - App Wouldn't Update Over A 3G Connection

Oct 26, 2010

One of my users reported that my app wouldn't update over a 3G connection, but would over a WIFI connection. I had him send me a log after a failure and it showed a CircularRedirectException for the URL. Yet, when I try with my phone (3G and WIFI) or the emulator, each with the same request.

View 2 Replies View Related

Android : How To Create A Closed (circular) ListView - Or Similar

Dec 17, 2009

I want to create a customized ListView (or similar) which will behave like a closed (circular) one:

1. scrolling down - after the last item was reached the first begins (.., n-1, n, 1, 2, ..)

2. scrolling upward - after the first item was reached the last begins (.., 2, 1, n, n-1, ..)

It sounds simple conceptually but, apparently, there is no straightforward approach to do this.

View 2 Replies View Related

Android :: Keep Camera App Running Continuously

May 2, 2010

I would like to run the Android Camera application from my development board for about 2 hours continuously.

I want to disable the phone lock screen that comes and shuts down the app.

View 2 Replies View Related

Android :: Continuously Scrolling ListActivity

Jul 11, 2010

Is it possible to have a list activity that dosen't finish? i.e. if you scroll to the end of the list then the start of the list begins again? It's be best if you could also disable the scroll bar.

View 4 Replies View Related

Android :: Continuously Running Thread

Jul 20, 2010

I am continuously running a thread in my activity which fetches lat/ lon information and the overlays on the map are updated dynamically through a handler. The overlays can be varying in number and can change dynamically. The thread is interrupted in onPause().

I am over riding the onTap() method in my Itemizedoverlay, where I want to call a dialog or may be start anothrer activity which describes that particular overlay item.

Every time I click on the moving overlay my app force closes.

I am basically using same onTap() method in .

If it is only a Toast message and not starting a dialog/activity then it works fine.

View 3 Replies View Related

Android :: Sample Code To Draw A Circular Gradient Mask On Bitmap In Droid?

Nov 11, 2010

Is there a way to draw a circular gradient mask on a bitmap in Android? Trying to produce something similar to a foggy window. Click the window and a transparent circle shows up revealing whats behind the window. Prefferably using a gradient so the center of the circle is completely transparent and the further out from the center the less transparent. Is this possible?

View 1 Replies View Related

Android :: Record Audio Uncompressed / Want To Record Audio From Microphone

Jan 17, 2010

I have searched the whole group but wasn't able to find a answer for my problem.I want to record audio from the microphone, apply some audio signal processing and than save the processed audio data in a compressed format.I figured out, how to record audio uncompressed but now I wonder if I can use some api functions to store this data in a supported compressed format.

View 4 Replies View Related

Android :: Continuously Update Trackball Coordinates

Jan 9, 2010

I'm trying to figure out how to continuously update the coordinates of the trackball. Right now, I just want to write the values on change to TextViews to understand how it works.

I've been looking at the onTrackballEvent. Right now, I assume that each event passed as an argument to it should be seen as a complete event, that is from the start of the trackball movement to the end. Is this correct? Because if so, the values of x and y will be the same during the execution of the onTrackballEvent body. If this would NOT be the case, I could just use a timer and update the values at a regular interval..

So either I have to somehow interrupt the onTrackballEvent call and write the values, repeatedly over and over again while it is still moving, which seems weird, or...well this is pretty much were my Google search skills and Android knowledge comes to a halt.

View 3 Replies View Related

Android :: Need Sounds To Play Continuously In Background

Nov 24, 2009

I am using soundpool to use sounds in my app. One of the sounds i need to play continuously in background. any example how to do this ?, streamVolume, streamVolume, 1, 0, 1f).

View 3 Replies View Related

Android :: How Can I Record Voice And Record Call In Android?

Nov 16, 2010

Please help me if you know how to record voice and if anybody call us than record both voice.

View 2 Replies View Related

Android :: Droid App Google Sky Map Continuously Shows 'Installing'

Oct 17, 2010

I installed Google Sky Map about a week ago. It appeared to complete the installation and the app is working fine. But when I go back to the Market Downloads it is still displaying the animated 'Installing' bar. I have tried a power off reset, even removed the battery for a few seconds but when I return to Market Downloads the 'Installing' message is still there.

View 3 Replies View Related

Android :: First 6 ListView Elements Are Continuously Being Invoked With GetView

Aug 18, 2010

When I check my logs, when using ListView, I see, that getView() method of a custom adapter is continuously invoked on first 6 elements, even if I scroll to the very end of the list.

View 1 Replies View Related

Android : Detecting Continuously Repeated Finger On Display

Jul 13, 2009

I'm having a conceptual problem with a simple application.

I have an empty FrameLayout and I want for a certain event to being continuously repeated until the finger leaves the display.

If I apply:

### code ###

frameLayout.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { myEvent(); return false; }});

View 2 Replies View Related

Motorola Droid X : Circular Icon In Notification Area

Sep 28, 2010

I wiped my phone and reinstalled everything this weekend. Afterward, I have a circular icon in my notification area. I highlighted it in red: What is it and how can I make it go away?

View 3 Replies View Related

Stream Photos And Make Pop Notification When New Circular Received

Nov 26, 2013

I'm new to android app development. I want to create app for my school. Which will brows school pics from net and new notifications..

How to stream photos and make a pop notification when new circular arrives. and what will i be needing to create a server for the photos and circulars...

View 1 Replies View Related

HTC EVO 4G :: Replace Stock Battery Indicator / Circular Bar Percentage Icon

Aug 6, 2010

This will replace the stock battery indicator with a circular bar that includes percentage remaining. I flashed this on the DC 3.5 ROM and it works perfectly.
XDA - developers - View Single Post - [How-To] Battery % -> modified services.jar

View 22 Replies View Related

Android :: Pausing / Stopping And Starting / Resuming Java TimerTask Continuously?

Jan 20, 2010

I have one simple question regarding Java TimerTask. How do I pause/resume two TimerTask tasks based on a certain condition? For example I have two timers that run between each other. When a certain condition has been met inside the task of first timer, the first timer stops and starts the second timer, and the same thing happens when a certain condition has been met inside the task of second do I pause timer1 while running timer2 and vice versa while timer2 is running? Performance and timing is my main concern as this needs to be implemented inside another running thread. By the way I am trying to implement these concurrent timers on Android.

View 4 Replies View Related

HTC Hero :: Phone Switches Itself On And Off Continuously

Apr 4, 2010

I bought a HTC hero (white, in UK) a few days ago - It worked totally fine until today! Now it switches itself on & off continuously! Unless I take battery off! The only way I can rectify the problem is if I take the SIM card out altogether, then it seems to stay switched on without a problem! I have also tried another SIM card just incase I had a fault with my SIM but it does just the same.

View 8 Replies View Related

HTC Desire :: Phone Restarts Continuously

Aug 7, 2010

My phone restarts continuously ! I have to reboot it without sim to turn off data and reboot again ! anyone knows what is this problem I love my phone and I really don know what to do.

View 2 Replies View Related

General :: Flickr Tries To Upload Continuously

Nov 17, 2012

How to stop Flickr from running in the phone and how to bring it back after disabling the app? I installed Flickr on my Droid Rezound. I didnt know it was already on the phone. I installed the Google Play version on top of the already installed version on my phone. I tested it out and decided not to keep it. I uninstalled the Google version and found the app was still trying to upload photos. Did some searching in the phone and disabled the phone version. After that it still tries to upload the photos. I signed out of Yahoo and Flickr and it still tries to upload. It's not that I care if the pics upload, but when I've taken lots of pics the upload gobbles battery life.

View 3 Replies View Related

Copyrights 2005-15, All rights reserved