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 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: 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 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