字符串转化为对应的字节数据
String str="abcdefg";
byte[] bytes=str.getBytes(); 将字符串转化为字节数组
Log.d(TAG, "onClick: getBytes=="+new String(str.getBytes())); 将字节数组转化为字符串
字符串转化为对应的字节数据
String str="abcdefg";
byte[] bytes=str.getBytes(); 将字符串转化为字节数组
Log.d(TAG, "onClick: getBytes=="+new String(str.getBytes())); 将字节数组转化为字符串