我正在尝试从 IntentService 获取字符串资源值,如下所示:
String errorTitle = getResources().getString(R.string.no_Internet_connection_error_title);
但它显示一个错误no_Internet_connection_error_title cannot be resolved or is not a field
。
当我输入 时R.string.
,eclipse 显示了一个 android 定义的字符串列表,不是我定义的。
我在活动中使用字符串资源,但无法在 IntentService 中使用。