标签:android blog io ar java 2014 art on cti
Context context = view.getContext(); if (context instanceof Activity){ Activity activity = (Activity)context; }
//应用 public View.OnClickListener onClickListener = new View.OnClickListener() { public void onClick(View v) { Activity currentActivity = (Activity) v.getContext(); Intent i = new Intent(currentActivity, ScreenTransitionLab.class); currentActivity.startActivity(i); } };
标签:android blog io ar java 2014 art on cti
原文地址:http://blog.csdn.net/zimo2013/article/details/40047965