Screenshot : bug fix for not getting screenshot file from target 37/23537/1
authorwoojin <woojin2.jung@samsung.com>
Fri, 27 Jun 2014 08:53:22 +0000 (17:53 +0900)
committerwoojin <woojin2.jung@samsung.com>
Fri, 27 Jun 2014 08:53:22 +0000 (17:53 +0900)
now screenshot file from target can be obtained and shown in screenshot view

Change-Id: I1f9e6b712b9872cdd390a5dbf9a018bf2b5cc961
Signed-off-by: woojin <woojin2.jung@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ScreenShotData.java

index 0512333..3afbd7e 100644 (file)
@@ -39,11 +39,8 @@ public class ScreenShotData extends ProbeCommonData {
        public void makeData(byte[] data) {
                super.makeData(data);
 
-               int length = LogDataUtils.getStringLength(index, data);
-               byte[] temp = new byte[length];
-               System.arraycopy(data, index, temp, 0, length);
-               imageFilePath = new String(temp);
-               index += length;
+               imageFilePath = ByteUtil.getString(data, index);
+               index += ByteUtil.getStringLength(data, index);
 
                orientation = ByteUtil.toInt(data, index);
        }