[Title] eventinjector-eplugin : modify sending message rountine at the nfc event
authorjihye kim <jihye1128.kim@samsung.com>
Wed, 21 Nov 2012 09:01:56 +0000 (18:01 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Wed, 21 Nov 2012 09:01:56 +0000 (18:01 +0900)
[Desc.] modify sending message rountine at the nfc event
[Issue] N/A

org.tizen.injector/src/org/tizen/injector/socket/TelephonySocket.java
package/changelog
package/pkginfo.manifest

index 86aefb3..b4545b9 100644 (file)
@@ -381,14 +381,18 @@ public class TelephonySocket {
                        output.write(NFC, 0, lengthOfID);
                        output.flush();
 
-                       byte[] next_packet_length = ByteUtil.int2byte(nfcMsg.getBytes().length);
-                       output.write(next_packet_length);
+                       byte[] messasge = nfcMsg.getBytes();
+
+                       ByteBuffer header = ByteBuffer.allocate(4);
+                       header.putShort((short)messasge.length);
+                       header.put((byte)0x00);
+                       header.put((byte)0x00);
+                       output.write(header.array(), 0, 4);
                        output.flush();
 
-                       byte[] main = nfcMsg.getBytes();
-                       if (main.length > 0)
+                       if (messasge.length > 0)
                        {
-                               output.write(main, 0, main.length);
+                               output.write(messasge, 0, messasge.length);
                        }
                        output.flush();
                        result = true;
index 137e581..31e1934 100644 (file)
@@ -1,3 +1,8 @@
+* 0.2.73
+- modify sending message rountine at the nfc event
+- need emuld version - 0.2.22
+== jihye kim <jihye1128.kim@samsung.com> 2012-11-21
 * 0.2.72
 - modify fixed accuracy value.
 == Sooyoung Ha <yoosah.ha@samsung.com> 2012-11-21
index cf484a5..726540e 100644 (file)
@@ -1,5 +1,5 @@
 Source:eventinjector-eplugin
-Version:0.2.72
+Version:0.2.73
 Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>
 
 Package:eventinjector-eplugin