Sound Recording Example does not work

by iuiz » Tue, 09 Jun 2009 00:05:01 GMT


Sponsored Links
 Hi,

I am trying to create an app, that works with the sound, that is
recorded using the mic. I just looked here for first informations:
 http://developer.android.com/guide/topics/media/index.html 

The Problem ist, that if I try to get the "Audio Capture Setup and
Start" Example to run, it just wont work. The first error is, that
there is no MediaStore.MediaColumns.TIMESTAMP. Ok, this is not such a
big problem, but indicates, that this is realy deprecated. The bigest
bug is here:

ContentResolver contentResolver = new ContentResolver();

Eclipse tells me the following: "cannot instantiate the type
ContentResolver"

So, has anyone some simple code for me to record sound data? I don't
need to record it, but I want to be able to work with it in the
memory. So perhaps a sound stream, or something similar.

Thx,
iuiz

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



Sound Recording Example does not work

by Lukas Zapletal » Mon, 29 Jun 2009 23:00:49 GMT


 Interested too.


Its an abstract class but I dont know why - there is only one
implementation - mock test.

Documentation is very outdated here.

Any help?
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Sound Recording Example does not work

by Mark Murphy » Mon, 29 Jun 2009 23:01:57 GMT


 


Call getContentResolver() from any Context (e.g., Activity, Service) to
get a ContentResolver instance.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Need help for your Android OSS project?  http://wiki.andmob.org/hado 

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



Other Threads

1. How does "@*android:type/name" work

Dianne mentioned we can use "@*android:type/name" to reference
resource added to framework-res.apk at "what's the best way for OEM to
organize it's own resources?"(

2. deleting then recreating a MapView in the same MapActivity fails

Hi,

I've got an Activity that extends MapActivity.

it uses ViewGroup.removeAllViews() & LayoutInflater.inflate() to
changes parts of itself.

if it creates then deletes then [re]creates a MapView using the above
method, it gets an exception during inflate that says:
    "You are only allowed to have a single MapView in a MapActivity"

how to I get MapActivity to forget the previous MapView instance?

-- 

3. Sticker Android

4. Andoird on x86 validate_display_surface:488 error 300d problem

5. Android 2.0 Bugs in ContactsContract.Intents.Insert

6. android Contacts application theme/style

7. Safe way to get the My Contacts Group?