how to log the value of data type of String16

1,024 views
Skip to first unread message

Tez

unread,
Jun 12, 2011, 9:37:49 AM6/12/11
to android-platform
I've been trying to use alog in IPCThreadState, but I don't see the
output on logcat.
Is there any other way to log a String16 value?

-Earlence

Tez

unread,
Jun 12, 2011, 10:08:54 AM6/12/11
to android-platform
okay, trying to use ::string() member.

-Earlence

Dianne Hackborn

unread,
Jun 12, 2011, 6:20:31 PM6/12/11
to android-...@googlegroups.com
You need to convert it to a UTF-8 string.  The easy inefficient way to do this is to just construct a String8 from it and use the raw char* from that.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Reply all
Reply to author
Forward
0 new messages