import android.app.Activity;
import android.content.Intent;
import android.widget.Toast;
public class ActivityBase extends Activity{
protected void showMsg (String pMsg,int showTime) {
Toast.makeText(this,pMsg,Toast.LENGTH_LONG).show();
}
protected void openActivity (Class<?> pClass){
Intent _Intent = new Intent();
_Intent.setClass(this,pClass);
startActivity(_Intent);
}
}
不是提示方法没有被使用么?应该只是warning吧,没关系的吧~------------------菜鸟拙见!
可能是as的bug吧,你只要在file-invalide cache and restart 一下就行了,具体什么原因不知道