次のように 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 では使用できません。