Why are you trying to start a thread for the UI? This happens automatically when your Activity is created so there is no need to try and start another thread for the UI. You should only have to create a background thread for your socket processing.
On Jan 14, 2:19 am, "[^MiSaTo^]" <misato...@gmail.com> wrote: > Hi again, > > I'm doing a little irc client, and now i've got 3 classes: > the "main" class launches 2 threads, one for the UI class (where i've > got a textview where to show everything) and another for the class > that contains the socket to connect to the irc server. > > The problem is that my application crashes with a NullPointerException > and i think the problem comes when I launch the UI class. (I'm doing > it: Thread tUI = new Thread(ui.class);) > > I don't know the best way to lauch this thread simultaneusly to the > socket one, could anybody help me? > > Thanks in anticipation and sorry for my bad english --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---