Hi Misato, Like Dan said, you most likely do not want to create a separate thread for the UI. Any UI updates should occur in the main thread (i.e. the thread where the Views were created). Please check this How To for handling expensive operations in the UI thread.
http://code.google.com/android/kb/commontasks.html#threading Cheers, James On Wed, Jan 14, 2009 at 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 -~----------~----~----~----~------~----~------~--~---