title: deprecated warning while compiling
body: <p>i have a question regarding development environments settings.
   i am trying to see if there is any possibility to make a compilation warning in a <code>development environment(eclipse,android studio)</code>for android applications using a deprecated feature(could be a method , constructor or whatever you can think of ). until now i am working manually to find the use of this deprecated features , and my boss asked me to look for an automatic settings in my idea  ... </p>
  
  <p>so lets say for a specific code : </p>
  
  <pre><code> protected void onPrepareDialog(int paramInt, Dialog paramDialog)
    {
      try
      {
        super.onPrepareDialog(paramInt, paramDialog);
        AlertDialog localAlertDialog = (AlertDialog)paramDialog;
        localAlertDialog.setTitle("Passphrase required");
        ((TextView)localAlertDialog.findViewById(2131230727)).setText(Preferences.getConfigName(this, getConfigFile()));
        Button localButton = localAlertDialog.getButton(-3);
        if (this.mOpenVpnService != null);
        for (boolean bool = true; ; bool = false)
        {
          localButton.setEnabled(bool);
          return;
        }
  </code></pre>
  
  <p>i have several deprecated features here , and android studio declares it , but what i need is a configuration for this warning to be automated and save me the need of walking through  each class manually ...</p>