GnuHash- I'm sorry to be repetitive but as Dianne said:
"At this point: no native code is supported in the SDK. Using it may result in your application breaking when an update to the phone is delivered. Using C++ APIs will definitely result in you breaking in the future. Could this please be moved over to one of the open-source groups? Nothing we are talking about is part of the current SDK? Thanks." On Tue, Nov 25, 2008 at 11:35 PM, GnuHash <[EMAIL PROTECTED]> wrote: > > hi > I tried writing a java wrapper class that interfaces the native > library using JNI. But i am getting RECORD_AUDIO permission denial > from the emulator. I have added RECORD _AUDIO permission in the > Android manifest. > > My application doesnt use mediarecorder to record but talks to the > native interface audiorecord for the recording using JNI. > > Am i missing something? > > Gnuhash > > > > On Nov 24, 1:40 am, "Dorn Hetzel" <[EMAIL PROTECTED]> wrote: >> David, >> >> Thank you very very much for the tips. I've gotten as far as >> downloading the android source code (onto a clean ubuntu VM I built >> for the job) and doing an initial make (which generated quite a lot of >> whining level errors but seemed to complete ok). >> >> I'm so-so at Java but a pretty old hand at C/C++ so hopefully I will >> be able to work through the remaining steps. Can you recommend any >> other similarinterfaceclasses I could examine for general clues? >> >> Once I get all this done, will the .so in the .apk be able to go >> through the marketplace and run on a real G1 or will I only be able to >> play with in on the emulator? >> >> In any case, I will write progress reports to the list and make the >> code available to all if I succeed. >> >> Best Regards, >> >> Dorn Hetzel >> >> On Fri, Nov 21, 2008 at 8:23 PM, davidsparks davidsparks >> >> <[EMAIL PROTECTED]> wrote: >> > The nativeinterfaceis called AudioRecord.h. You'll need to download the >> > Android source code, write a JNIinterfaceto AudioRecord, build a .so >> > library that you can include in your APK, write a Java wrapper class for >> > it, >> > and then load the library from your Java wrapper. >> >> > Hope that helps. >> >> > Dave >> >> > On Wed, Nov 19, 2008 at 11:22 AM, Dorn Hetzel <[EMAIL PROTECTED]> wrote: >> >> >> David, >> >> >> It looks like the MediaRecorder functionality is a non-start for my >> >> application since I need to process theaudioas it is coming in, not >> >> some time later after the recording is complete. Can you provide me >> >> some clue as to where to find information on the nativeinterface, >> >> since I would rather be able to at least make some progress with the >> >> rest of my application while waiting for the next version. Without >> >> some alternative to MediaRecorder I will be simply unable to proceed. >> >> >> Thanks! >> >> >> -Dorn >> >> >> On Wed, Nov 19, 2008 at 2:14 PM, [EMAIL PROTECTED] >> >> <[EMAIL PROTECTED]> wrote: >> >> >> > It is the only supported method in SDK 1.0. There is a native >> >> >interfacetoaudioinput, but it will be changing in a future release >> >> > and I strongly advise against using it. >> >> >> > On Nov 19, 8:26 am, dorn <[EMAIL PROTECTED]> wrote: >> >> >> Is the MediaRecorder the only method available to acquireaudiofrom >> >> >> the microphone, or is there a lower level method available? >> >> >> >> On Nov 14, 4:59 pm, Dave Sparks <[EMAIL PROTECTED]> wrote: >> >> >> >> > The MediaRecorder is currently hardcoded for AMR-NB and is intended >> >> >> > for MMS messages. >> >> >> >> > You can expect improvements toaudiorecording in a future SDK. >> >> >> >> > On Nov 14, 12:26 pm, ste <[EMAIL PROTECTED]> wrote: >> >> >> >> > > I'm testing out the MediaRecorder'saudiorecording capability, and >> >> >> > > the quality of theaudiowas less then I was expecting. It was >> >> >> > > significantly lower then the quality you get while speaking on the >> >> >> > > phone, and sounded very digitized. >> >> >> > > I've tested both the 3gpp and MPEG_4 encoding options, and noticed >> >> >> > > the >> >> >> > > same quality. >> >> >> > > Has anyone else noticed this, and is this an issue with the phone's >> >> >> > > hardware or the MediaRecorder's capabilities? If it's the latter, >> >> >> > > is >> >> >> > > the quality of recording something which is planned to be improved? >> >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---