title: Override toString() for an Android activity
body: <p>After running <em>Inspect Code</em> from the <em>Analyze</em> menu of the Android Studio (after customizing the inspection profile), I get this warning:</p>
  
  <p><em>ID:</em> ClassHasNoToStringMethod</p>
  
  <p><em>Description:</em> Reports classes without toString() method.</p>
  
  <p><em>Problem synopsis:</em> Class 'MainActivity' does not override 'toString()' method (at line 30)</p>
  
  <p>Note: line 30 holds the declaration of the MainActivity class:</p>
  
  <pre><code>public class MainActivity extends Activity implements View.OnClickListener, PopupMenu.OnMenuItemClickListener {
  </code></pre>
  
  <p>This is only reported for the Main Activity, that extends Activity. I also have an activity that extends  PreferenceActivity, but no toString warning is reported for it.</p>
  
  <p><strong>1.</strong> Does it make sense to override 'toString()' for an activity, as suggested? In what cases would it help? Is it a best practice?</p>
  
  <p><strong>2.</strong> How would an Activity toString override implementation look like?</p>
  
  <p><strong>3.</strong> Why isn't the warning reported for the PreferenceActivity descendant?</p>