Host android application to initiate communicate with tizen application(Android to tizen) -
i have android application needs make connection when need gear 2 device. need ask question(yes or no) on tizen , response how do ?? there many tutorials (helloaccessoryprotocol app) initiates connection tizen need other way round
findpeeragents() call gives below log onfindpeeragentresponse arg0 =sapimageswitcher arg1 =0 in try block of find peer agent response sap connection constructor onserviceconnectionresponse result error =1030
the error code here means connection_failure_peeragent_no_response
on tizen side agentcallback included onrequest function below
var agentcallback = { onrequest : function(peeragent) { console.log(" onrequest " + peeragent); saagent.acceptserviceconnectionrequest(peeragent); }, onconnect : function(socket) { console.log( "agentcallback onconnect" + socket); sasocket = socket; alert("sap connection established remotepeer"); createhtml("startconnection"); sasocket.setsocketstatuslistener(function(reason){ console.log("service connection lost, reason : [" + reason + "]"); disconnect(); }); }, onerror : onerror };
please tell me if missing else, thank you.
have tried reversing roles of consumer , provider. guess should fix it. check config xml files if roles, channels set properly.
Comments
Post a Comment