Your exception is raised from a different class ClientActivity method doInBackground
Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:200)
at android.os.Handler.<init>(Handler.java:114)
at android.app.Activity.<init>(Activity.java:754)
at it.rockopera.SCSremote.TcpClient.<init>(TcpClient.java:60)
at it.rockopera.SCSremote.ClientActivity$ConnectTask.doInBackground(ClientActivity.java:237)
at it.rockopera.SCSremote.ClientActivity$ConnectTask.doInBackground(ClientActivity.java:231)
thanks .. but ...
how can I solve it ??
do have I to extend "ClientActivity"? it crashes !!
without extending I can't have sharedpreferences available !