Example #1
0
 static void Main(string[] args)
 {
     T1 = new AMCHandlerThread("T1");
     T1.Start();
     AMCLooper lp = T1.getLooper();
     Handler1 h1 = new Handler1(lp);
     h1.Send(new AMCMsg(1));
     h1.Send(new AMCMsg(2), 1000);
     h1.Send(new AMCMsg(3, "Hello Handler."));
     AMCBundle bundle = new AMCBundle();
     bundle.put("key", "THE VALUE");
     h1.Send(new AMCMsg(4, bundle));
     Thread.Sleep(2000);
     T1.Stop();
     T1.Join();
 }
Example #2
0
 public void SetData(AMCBundle b)
 {
     _bundle = b;
 }
Example #3
0
 public AMCMsg(String what, AMCBundle bundle)
 {
     this.what = what;
     this.SetData(bundle);
 }