From: woojin Date: Fri, 27 Jun 2014 08:53:22 +0000 (+0900) Subject: Screenshot : bug fix for not getting screenshot file from target X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcad299ae644cd0ba27c0c1051c92a49d6aa5118;p=sdk%2Ftools%2Fdynamic-analyzer.git Screenshot : bug fix for not getting screenshot file from target now screenshot file from target can be obtained and shown in screenshot view Change-Id: I1f9e6b712b9872cdd390a5dbf9a018bf2b5cc961 Signed-off-by: woojin --- diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ScreenShotData.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ScreenShotData.java index 0512333..3afbd7e 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ScreenShotData.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ScreenShotData.java @@ -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); }