String str1 = “Hello World!”;
// 변수 str1의 바이트 값
// 72101108108111328711111410810033
bytes[] buffers = str1.getBytes();
…
// 바이트 배열 자체의 문자열 값
// [B@ca0b6
String buffersArrayString = buffers.toString();
…
// 바이트 배열을 문자열로 변환한 값
// Hello World!
String str2 = new String(buffers);
참조 : http://roadrunner.tistory.com/139
'Android' 카테고리의 다른 글
This Handler class should be static or leaks might occur: IncomingHandler (0) | 2015.09.24 |
---|---|
keytool error Keystore was tampered with, or password was incorrect (0) | 2015.09.21 |
액티비티 화면을 가로나 세로로 고정하기 (0) | 2015.09.17 |
finished with non-zero exit value 2 오류 관련 문의 (0) | 2015.09.04 |
최신 Android Studio, Google Cloud Messaging 3.0(GCM)을 이용하여 Android 푸시 서비스 구현하기 (0) | 2015.09.03 |