title: ACTION_QUERY_PACKAGE_RESTART cannot be resolved or is not a field
body: <p>Consider the following useless code in an Android activity:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      String s1 = Intent.ACTION_PACKAGE_CHANGED;
      String s2 = Intent.ACTION_QUERY_PACKAGE_RESTART;
  }
  </code></pre>
  
  <p>Why does Eclipse raise an <strong>ACTION_QUERY_PACKAGE_RESTART cannot be resolved or is not a field</strong> error? I mean, aren't both the two strings defined by the <a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.2_r1/android/content/Intent.java?av=f" rel="nofollow">Intent class</a>?</p>
  
  <p>The application is using:</p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="14"
      android:targetSdkVersion="17" /&gt;
  </code></pre>
  
  <p>but putting both to 17 doesn't change Eclipse behaviour.</p>