Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #16761

Accessing a thread

From "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-dpk-this>
Subject Accessing a thread
Message-ID <50181D60.55729.calajapr@time.synchro.net> (permalink)
Newsgroups comp.lang.java.programmer
Date 2012-07-31 18:02 +0000
Organization tds.net

Show all headers | View raw


From: "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-rf4-this>

From: Dirk Bruere at NeoPax <dirk.bruere@gmail.com>

File1

public class controller extends Activity {


        /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         final LanSendThread lanSendThread = new LanSendThread();
         lanSendThread.start();
...}

__________

File2

public class LanSendThread extends Thread{
        public static Handler lanSendHandler;

     @Override
     public void run(){
            Looper.prepare();

            lanSendHandler = new Handler() {
//stuff}

___________

How do I access the thread lanSendThread from another class in another file?




--
Dirk

Full Spectrum Praxis : ZERO STATE : http://zerostate.net

-+- BBBS/Li6 v4.10 Dada-1
 + Origin: Prism bbs (1:261/38)
-+- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Accessing a thread "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000
  Re: Accessing a thread "Eric Sosman" <eric.sosman@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000
    Re: Accessing a thread "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000
  Re: Accessing a thread "Roedy Green" <roedy.green@1:261/38.remove-x1c-this> - 2012-07-31 20:07 +0000
    Re: Accessing a thread Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2012-08-03 16:52 +0100
      Re: Accessing a thread markspace <-@.> - 2012-08-03 10:07 -0700

csiph-web