D
Dirk Bruere at NeoPax
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?
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?