【发布时间】:2013-06-22 21:29:00
【问题描述】:
我用下面的构造函数写了一个类
public CustomDialog(Context context)
但是当我尝试在我的活动中这样做时
CustomDialog diag = new CustomDialog(getApplicationContext()){/*stuff here*/};
我收到错误The constructor CustomDialog(Context) refers to the missing type Context
这是什么意思?我该如何解决?
【问题讨论】:
标签: android constructor android-context