I'm not familiar with NDK development, so I'm not sure if I can help you much. However...
It doesn't seem like the "right" solution to pull libraries from an actual G1 device. I would think that you should get whatever C libraries you need from some developer repository/SDK instead. Even if your app happens to compile and link and run, it might be risky. Also, do you also plan for this app to work on other devices besides the G1? If so, you better be pretty damn sure that it works for non- G1 devices before publishing to Market. Admittedly, I'm not familiar with how the development process should go for C code. I'm not sure how developers should handle software/ firmware updates (where Android C libraries are changed, I assume), and how to handle differences between devices. The Java domain seems easier/cleaner, but perhaps only because I'm more familiar with it. :) Any NDK developers wanna chime in here? -- PJ On Nov 12, 7:48 am, Bytes <[email protected]> wrote: > Hi PJ, > > Thanks for your response. > > Now my requirements got changed, even little bit inconsistency in > voice seems to be OK. > > But I've few questions: > > 1. Lot of my code is developed in C, and I'm porting it on Android > using NDK. So I wanna to avaid JNI for every read/write (to process > the data). For this what I did earlier is, > > a. Pulled libmedia.so and its dependent libraries from the device > (G1), > b. Used Android source code header files "frameworks/base/libs" > c. Used AudioRecord.cpp and AudioTrack.cpp present in media/ > libmedia... instead of > > android.media.AudioRecord/AudioTrack packages. > > Compile and run on the device and voice is acceptable. > > As this is out of NDK, is it leagal ? Does Android Market allows this > approach ? > > Thank you very much for your time. > > regards > -Bytes -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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

