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. Intercepting incoming messages and performing some processing

Hi All,

First off, I need to tell you people that I am pretty new to
programming for Android Devices, so If my question is pretty dumb,
pardon me :) .

I want to know if what I have in mind is possible... I want to
intercept incoming messages (SMS only for now) to scan for a specific
message (based on some text in it) and redirect only those specific
messages to my Application where I will be performing some action
based on the content. If the incoming message does not have the text
that I am looking for, then I want the phone's built-in messaging app
to handle the message as any other message.

Since I am very new to android programming, and new to intents (cool
thing, BTW), I am not sure if this is possible. I think its possible
to have an activity to launch when a message is received with some
specific intent, right? But after I decide that my activity doesn't
want to handle the message, is it possible to redirect it to the built
in messaging app? How do I go about this?

-- 

2. Can't access layout views from inside parent view

Try removing the line <com.android.myapp.fooview> and </
com.android.myapp.fooview>

Can it access it then?

-Kitzy




-- 

3. Content Provider General Questions For a Newbie

4. Blapk Market is back!!

5. testing

6. foyage, Free App wajib untuk Androi

7. SSL3_READ_BYTES error