Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16608
| From | Dirk Bruere at NeoPax <dirk.bruere@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Accessing a thread |
| Date | 2012-07-30 10:54 +0100 |
| Organization | Dirk Bruere at Neopax |
| Message-ID | <a7n3u2FhvtU2@mid.individual.net> (permalink) |
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 | Next — Next in thread | Find similar | Unroll 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