标签:mystra android activity 管理类 更新通信
mTest.test(context);
private InterfaceTest mTest; public void setTest(InterfaceTest test) { mTest = test; } public interface InterfaceTest { public void test(Context context); }
StepCounterManager manager = StepCounterManager.sharedInstance(); manager.setTest(mTest);
private StepCounterManager.InterfaceTest mTest = new StepCounterManager.InterfaceTest() { @Override public void test(Context context) { Log.e("DEBUG: WCL", "更新界面"); updateViews(false, context); } };
Android - Activity类和Manager类的更新通信
标签:mystra android activity 管理类 更新通信
原文地址:http://blog.csdn.net/caroline_wendy/article/details/41490483