2 qq 28195487 qq_28195487 于 2016.04.28 15:12 提问

菜鸟求帮忙!!!AS 提示Method“showMsg”is never used

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);
}

}

2个回答

CSDNXIAON
CSDNXIAON   2016.04.28 15:23

This program is used to explain how PCA works and the idea behind the method.
PowerDesigner提示This data item is already used in a primary identifie...
stored to (datesArray and programsDict) during its initialization is never read
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

u013711961
u013711961   2016.04.29 09:19

不是提示方法没有被使用么?应该只是warning吧,没关系的吧~------------------菜鸟拙见!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!