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


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

Accessing a thread

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Dirk Bruere at NeoPax <dirk.bruere@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Accessing a thread
Date Mon, 30 Jul 2012 10:54:25 +0100
Organization Dirk Bruere at Neopax
Lines 40
Message-ID <a7n3u2FhvtU2@mid.individual.net> (permalink)
Reply-To dirk.bruere@gmail.com
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net 0Fv6kW2dz94cTA+wH2tl2g7UlRAq1+Nu+32lB61d7shWdFYn+MwX4Qt1YWWITstKRl
Cancel-Lock sha1:25pt7o4OulzMHuwS1B/QeFTQw+Y=
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
X-Antivirus avast! (VPS 120730-0, 30/07/2012), Outbound message
X-Antivirus-Status Clean
Xref csiph.com comp.lang.java.programmer:16608

Show key headers only | View raw


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

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


Thread

Accessing a thread Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2012-07-30 10:54 +0100
  Re: Accessing a thread Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-30 09:10 -0400
  Re: Accessing a thread Roedy Green <see_website@mindprod.com.invalid> - 2012-07-30 19:34 -0700

csiph-web