[android-developers] Re: Recording Audio in a call

2009-04-27 Thread niko20
I think it would be illegal since you could record someone else without their knowlege. On Apr 25, 2:59 pm, John Doe wrote: > Is it going to be possible somehow? in g2 ? cupcake ? i wonder whether > it is because of software limitations or hardware limitations... > > On Apr 25, 5:33 am, Mark Mu

[android-developers] Re: Recording Audio in a call

2009-04-25 Thread John Doe
Is it going to be possible somehow? in g2 ? cupcake ? i wonder whether it is because of software limitations or hardware limitations... On Apr 25, 5:33 am, Mark Murphy wrote: > John Doe wrote: > > Hi guys. I have a question and i am looking for an answer for a very > > long time. > > > I am tryi

[android-developers] Re: Recording Audio in a call

2009-04-25 Thread Mark Murphy
John Doe wrote: > Hi guys. I have a question and i am looking for an answer for a very > long time. > > I am trying to record audio when i call someone and when someone calls > me.I am using phonestatelisteners and i am able to record audio from > outside (my voice) when i call someone. however w

[android-developers] Re: Recording audio with 1.5 SDK

2009-04-20 Thread Dave Sparks
I think we're still working on sample code for the SDK. On Apr 20, 11:05 am, j wrote: > Thank you Dave.  Is there any sample code utilizing AudioRecord that I > can refer to? > > My goal is to write the audio to a RTP network stream. > > On Apr 16, 1:21 pm, Dave Sparks wrote: > > > See theAudio

[android-developers] Re: Recording audio with 1.5 SDK

2009-04-20 Thread j
Thank you Dave. Is there any sample code utilizing AudioRecord that I can refer to? My goal is to write the audio to a RTP network stream. On Apr 16, 1:21 pm, Dave Sparks wrote: > See theAudioRecordclass. > > On Apr 16, 11:33 am, j wrote: > > > One known limitation of SDK 1.1 was that audio c

[android-developers] Re: Recording audio with 1.5 SDK

2009-04-16 Thread Dave Sparks
See the AudioRecord class. On Apr 16, 11:33 am, j wrote: > One known limitation of SDK 1.1 was that audio can be recorded only to > a File and not to a network stream.  Is this still an issue with 1.5 > SDK? > > Thanks! --~--~-~--~~~---~--~~ You received this mess

[android-developers] Re: Recording Audio

2009-04-09 Thread bw
Hi, the following code works for me. I was also getting the "Start failed." error at one point. Fixed it by changing my output file extension from ".3gpp" to ".audio" -Ben final String path = "/sdcard/recording" + System.currentTimeMillis() + "_" + (int)(Math.random() * 1000)+ ".audio"; fin

[android-developers] Re: Recording Audio

2009-04-03 Thread david 1
hi Ben, by using you code, I encountered the problem, “The application audiorecorder(process com.david.android.audiorecorder) has stopped unexpectedly. Please try again”. My audiorecoder class looks like as: import android.app.Activity; import android.os.Bundle; //importing yours … public class

[android-developers] Re: Recording Audio

2009-03-12 Thread madcoder
Nice solution, thanks for sharing! On Mar 12, 1:36 pm, benmccann wrote: > Finally got it figured > out:http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ > > On Mar 9, 11:37 am, benmccann wrote: > > > I'm still feeling directionless when it comes to what > > MediaRecorder.set

[android-developers] Re: Recording Audio

2009-03-11 Thread benmccann
Finally got it figured out: http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ On Mar 9, 11:37 am, benmccann wrote: > I'm still feeling directionless when it comes to what > MediaRecorder.setOutputFile(String path) is expecting.  Is it a > relative path?  Is it a fully qualifie

[android-developers] Re: Recording Audio

2009-03-09 Thread benmccann
I'm still feeling directionless when it comes to what MediaRecorder.setOutputFile(String path) is expecting. Is it a relative path? Is it a fully qualified path? Must the directory we are recording in already exist, or will MediaRecorder create it for us if it does not exist? What happens if w

[android-developers] Re: Recording Audio

2009-03-07 Thread benmccann
jdl, I'd be happy to post my code, but I still don't have a working example. I upgraded to the 1.1 SDK today in hopes that it fixed a bug and things would work for me, but it seems the media APIs are still hopelessly broken. All I ever get is the meaningless message "start failed". It looks lik

[android-developers] Re: Recording Audio

2009-03-06 Thread benmccann
Bugs already exist: http://code.google.com/p/android/issues/detail?id=450&q=media%20documentation&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary http://code.google.com/p/android/issues/detail?id=1256&q=media%20documentation&colspec=ID%20Type%20Version%20Security%20Status%20Owner

[android-developers] Re: Recording Audio

2009-03-05 Thread Dave Sparks
Log a bug at http://b.android.com. On Mar 5, 2:17 pm, jdl wrote: > Diane or Dave, > > How do we go about requesting that someone from the Android project > update the Audio/Video > tutorial,http://developer.android.com/guide/topics/media/index.html, > so that it works with the current version o

[android-developers] Re: Recording Audio

2009-03-05 Thread jdl
Hi Ben, Since the tutorial's currently broken, do you mind posting what values you put in instead of these broken lines: recorder.getMimeContentType() MediaStore.Audio.INTERNAL_CONTENT_URI; If you got everything working, would you be willing to post your code (since the tutorial's not yet update

[android-developers] Re: Recording Audio

2009-03-05 Thread jdl
Diane or Dave, How do we go about requesting that someone from the Android project update the Audio/Video tutorial, http://developer.android.com/guide/topics/media/index.html, so that it works with the current version of the API? Thanks, AN On Feb 28, 2:45 pm, Dianne Hackborn wrote: > You use

[android-developers] Re: Recording Audio

2009-02-28 Thread Dianne Hackborn
You use Context to get at your private data files: http://developer.android.com/guide/topics/data/data-storage.html http://developer.android.com/reference/android/content/Context.html#getFileStreamPath(java.lang.String) On Thu, Feb 26, 2009 at 2:40 PM, benmccann wrote: > > >> each application h

[android-developers] Re: Recording Audio

2009-02-27 Thread Dave Sparks
That's because it doesn't get registered as a music file. We felt that most people did not want to have voice messages from friends show up in the party shuffle playlists. It could be very embarrasing, if you know what I mean. :) On Feb 26, 11:06 pm, MMF wrote: > Hi Dave, > > If I record using t

[android-developers] Re: Recording Audio

2009-02-27 Thread saifullah hanif
http://tinyurl.com/cyecuf http://tinyurl.com/ahvxzc http://tinyurl.com/8rwmkr http://tinyurl.com/7wbm8o On 2/26/09, benmccann wrote: > > > >> each application has its own private data directory / > >> data/app-private/app-package. I believe your working directory is set > >> to this directory b

[android-developers] Re: Recording Audio

2009-02-26 Thread MMF
Hi Dave, If I record using this Soundrecorder app, it creates a .3gpp file. But this file is not getting listed in the Music app. I have tried restarting the emulator. Any idea what could be the reason for this? Thanks ~ On 2/27/09, Dave Sparks wrote: > > I confess, I don't write much Java cod

[android-developers] Re: Recording Audio

2009-02-26 Thread Dave Sparks
I confess, I don't write much Java code (I work on the native media framework), so I could be wrong about this. This API looks promising though: Environment.getDataDirectory() Hopefully someone knowledgeable will correct me if I have steered you wrong. On Feb 26, 2:40 pm, benmccann wrote: > >>

[android-developers] Re: Recording Audio

2009-02-26 Thread benmccann
>> each application has its own private data directory / >> data/app-private/app-package. I believe your working directory is set >> to this directory by default Cool. So it sounds like I should just be able to use a relative path from the current location then. Unfortunately, I'm getting the f

[android-developers] Re: Recording Audio

2009-02-26 Thread Dave Sparks
You can get the path to external storage (e.g. SD card) with Environment.getExternalStorageDirectory(). This is world read/ writable. Alternatively, each application has its own private data directory / data/app-private/app-package. I believe your working directory is set to this directory by def

[android-developers] Re: Recording Audio

2009-02-25 Thread benmccann
>> setOutputFile() expects a path to where you want the file stored. Yep, figured that much by the method name, but what's a valid path? I mean I'm figuring it's UNIX-like, but other than that I'm in the dark. Is there a preferred place for apps to store data? Are there certain directories tha

[android-developers] Re: Recording Audio

2009-02-24 Thread Dave Sparks
setOutputFile() expects a path to where you want the file stored. You can take a look at the source to SoundRecorder in the open source tree for some working code: http://android.git.kernel.org/?p=platform/packages/apps/SoundRecorder.git;a=summary On Feb 24, 4:43 pm, benmccann wrote: > Hi, > I

[android-developers] Re: Recording Audio with MediaRecorder on G1

2009-02-11 Thread Dave Sparks
I looked over the code and didn't see anything obvious. You won't see anything in the log unless an error occurs - we try to minimize logging in production code. Run adb bugreport and take a look at the kernel log. You should see something like this: <6>[ 820.265000] adsp: opening module AUDPRE

[android-developers] Re: Recording audio stream

2009-01-26 Thread Dave Sparks
I can't give you specifics about deployment because: (a) I don't know, it's up to the carrier and manufacturer to decide when they deploy new releases (b) Even I did know, there's a fairly good chance I couldn't tell you due to NDA's we have with our partners You can see the code in development

[android-developers] Re: Recording audio stream

2009-01-26 Thread benmccann
I'm happy to hear future releases will support the ability to stream audio being recorded. Any ETA on this? On Dec 30 2008, 9:58 am, Dave Sparks wrote: > It's probably not really streaming audio. Some people are working > around the issue by "tailing" the file as it is being written. > > On De

[android-developers] Re: Recording Audio

2009-01-11 Thread hmmm
u but it should be the same. - Original Message - From: Lucius Fox To: android-developers@googlegroups.com Sent: Monday, January 12, 2009 9:11 AM Subject: [android-developers] Re: Recording Audio Thanks. how can I seutp the emulator to record audio? I am using Ubuntu as

[android-developers] Re: Recording Audio

2009-01-11 Thread Lucius Fox
Thanks. how can I seutp the emulator to record audio? I am using Ubuntu as my development environment. How can I setup the emulator for that? Thank you. On Sun, Jan 11, 2009 at 2:23 PM, hmmm wrote: > > To Record audio to a new file on sd card I did as follows and worked for me > with emulator

[android-developers] Re: Recording Audio

2009-01-11 Thread Stjepan Rajko
On Sun, Jan 11, 2009 at 12:24 AM, Tez wrote: > > Hi, > > I want to record audio from the emulator using the mic. Can anyone > send me some sample code on how to do this. > Also, I want to know whether it is possible to redirect this mic o/p > to a memory buffer or network socket. > I am developi

[android-developers] Re: Recording Audio

2009-01-11 Thread hmmm
To Record audio to a new file on sd card I did as follows and worked for me with emulator and mic. But don't know about buffers or sockets. And not sure if this is a good way but anyway works. To run emulator with sd card you do mksdcard 512M sdimg.iso then start emulator as 'emulator.exe -sdca

[android-developers] Re: Recording audio stream

2008-12-30 Thread Dave Sparks
It's probably not really streaming audio. Some people are working around the issue by "tailing" the file as it is being written. On Dec 30, 5:03 am, FranckLefevre wrote: > The application "Phone Recorder" available in Market softwares already > does this pretty well. > I don't know if sources ar

[android-developers] Re: Recording audio stream

2008-12-30 Thread FranckLefevre
The application "Phone Recorder" available in Market softwares already does this pretty well. I don't know if sources are available somewhere... Franck. On Dec 25, 1:27 am, "vitalii.mi...@gmail.com" wrote: >   Is there any way to record audio stream and send streaming audio  to > network ??

[android-developers] Re: Recording audio stream

2008-12-29 Thread Dave Sparks
Audio streaming will be supported in a future release. On Dec 24, 4:27 pm, "vitalii.mi...@gmail.com" wrote: > Is there any way to record audio stream and send streaming audio to > network ?? Instead of recording to file. --~--~-~--~~~---~--~~ You received this