Hi Dhaval, On Nov 15, 9:48 pm, Dhaval <dhaval.shre...@gmail.com> wrote: > Hello all, > > I'm trying to use a c library for my android project and I need to > redirect the output from printf to Logcat. After spending sometime > looking into a solution for this, I stumbled > across:http://developer.android.com/guide/developing/tools/adb.html#logcat > > Which indicates we should be able to do something like this: > > $ adb shell stop > $ adb shell setprop log.redirect-stdio true > $ adb shell start > > I tried this and haven't had much luck. Should this work as easily as > that? Am I missing something?
I fell into the same trap. It doesn't work. The docs are wrong. See this thread: http://groups.google.com/group/android-ndk/browse_thread/thread/1f40777f4c4e27ea/7b34b69669a46ab0?lnk=gst&q=stdout#7b34b69669a46ab0 And several other threads on the android-ndk list. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en