Forum Xamarin Xamarin.Android

Thread no being created

I am attempting to create a handler for my messages received from my service and handle those messages in a different thread. However, it appears that a new thread is not being created for my custom handler. The steps I am taking is:

1.instantiate a new HandlerThread hThread .Start() on hThread
3.create a new IncomingHandler(This is my custom handler), passing hThread into the constructor
4.In the IncomingHandler constructor, the call "new Handler(hThread.Looper)" is made
5.Handler is passed to the constructor of a Messenger(which will act as the receiver)

This logic works in Java but I cannot get it to work in Xamarin.


Sign In or Register to comment.