Saturday 15 June 2013

android - "FAILED BINDER TRANSACTION" when using SignalR client -



android - "FAILED BINDER TRANSACTION" when using SignalR client -

i'm developing app uses this library microsoft signalr team, seems great. wanna utilize in android application, i'm using way:

hubconnection connection = new hubconnection(default_server_url); final hubproxy proxy = connection.createhubproxy("fitnesshub"); connection.error(new errorcallback() { @override public void onerror(throwable error) { } }); connection.start().done(new action<void>() { @override public void run(void obj) throws exception { proxy.invoke("shownotification", new object()).done(new action<void>() { @override public void run(void obj) throws exception { toast.maketext(getapplicationcontext(), "hello", toast.length_long).show(); } }); } });

hub:

public class fitnesshub : hub { public void sendnotification() { clients.others.shownotification(); } }

but, getting error in logcat:

!!! failed binder transaction !!! channel 'b13f7160 com.example.signalrclient/com.example.signalrclient.mainactivity (server)' ~ channel unrecoverably broken , disposed!

any idea?

android signalr signalr.client

No comments:

Post a Comment