Subprocesos: no se puede crear un controlador dentro de un subproceso que no haya llamado a Looper.prepare ()
Estoy usando un código antiguo y al ejecutar este método, obtengo el error Looper.prepare (). No entiendo lo que significa la línea pero es muy necesario.
Programa general: tengo una AsyncTask que llama a un método que llama a doBindService () - desde doInBackground () -. He leído las numerosas otras preguntas sobre este error y creo que tengo un error de subprocesamiento pero no puedo averiguar cuál es el problema.
public rNOC doBindService(){
_server = new rNOC(this);//CODE FAILING HERE
return _server;
}
*** Uncaught remote exception! (Exceptions are not yet supported across processes.)
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:197)
at android.os.Handler.<init>(Handler.java:111)
at com.servicenexus.ServiceNexus$1.<init>(ServiceNexus.java:128)
at com.servicenexus.ServiceNexus.<init>(ServiceNexus.java:128)
at com.servicenexus.rNOC.<init>(rNOC.java:31)
at com.servicenexus.ServiceNexus.doBindService(ServiceNexus.java:406)
at com.servicenexus.ServiceNexus$2.login(ServiceNexus.java:790)
at com.servicenexus.IRemoteInterface$Stub.onTransact(IRemoteInterface.java:126)
at android.os.Binder.execTransact(Binder.java:351)
at dalvik.system.NativeStart.run(Native Method)