I want transfer server response data from mobile to google glass through bluetooth socket.For this which of the following method is efficient and simple to implement?
1) Convert JSON object to byte array,and write on socket output stream,then receive it on glass side and parse json. 2) Parse JSON on mobile itself and wrap it to an Object,convert the object to byte array,and write on socket output stream,then receive it on glass side and use directly.
Also android JSONReader or GSON,which one is efficient?(I think both are same,but jsonreader supports on above ICS,that is not a problem).Also which is easy to convert Java objects and viceversa?