title: Android: android compile time verification that intent extras were passed
body: <p>I was wondering if anybody has ever created some sort of system that can check in compile time that intent extras are passed?
  I am passing extras with an intent to start another activity which tells the other activity how to behave</p>
  
  <p>(for instance:</p>
  
  <pre><code>Intent i = new Intent(CurrentActivity.this, OtherActivity.class);
  i.putExtra("ShowOverlay", false);
  startActivity(i);
  </code></pre>
  
  <p>)</p>
  
  <p>the problem is that I don't want future generations of developers to start this activity without sending this intent because there is no defined default behavior,</p>
  
  <p>I assume that this is possible using some sort of annotation but might be difficult since tracking the intent object can be an impossible task at compile time.
  Just wondering if anybody ever thought of this and if this is theoretically possible.</p>