Monday, November 16, 2009

Re: [android-developers] Viewing logs on native android

Yes you can, once you connect your device to the PC , and from eclipse select the device as the actual one , you can see the logs of actual device on the Logcat,
Thanks,
Alok.

On Mon, Nov 16, 2009 at 7:58 PM, swapnil kamble <swap.kamble@gmail.com> wrote:
Hi,
   Sorry for late reply. I missed your reply.

How can I specify natively running android in eclipse ? I think eclipse will only connect to emulators.
Can I see the logs in android itself ?


On Wed, Nov 4, 2009 at 10:53 AM, Blue Zheng <blue.zheng@gmail.com> wrote:
Oh, sure, you still can use logcat to logging for native android device.
Just choose your device in DDMS for logging.

if you want to logging just for App, the NDK is not necessary.



2009/11/4 swapnil kamble <swap.kamble@gmail.com>
Thanks for your reply.
                                    Then I will have to always use NDK just for logging. Can't I do logging purely in Android App just like for Emulator using logcat ?


On Wed, Nov 4, 2009 at 10:11 AM, Blue Zheng <blue.zheng@gmail.com> wrote:
You can use the header file <android/log.h> in NDK, and link to /system/lib/liblog.so.
And you can find the details in the document of NDK ($NDK_ROOT)/docs/STABLE-APIS.TXT).


2009/11/4 swapnil kamble <swap.kamble@gmail.com>
Hi All,
         As we see emulator's logs in logcat of eclipse. What is similar on native android to view these logs ?

Thanks in advance

--
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama    Hare Rama   Rama   Rama    Hare Hare ||

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama    Hare Rama   Rama   Rama    Hare Hare ||

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama    Hare Rama   Rama   Rama    Hare Hare ||

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate