title: Can be static reference to View memory leak?
body: <p>I am really new to Android development and I have read article about <a href="http://developer.android.com/resources/articles/avoiding-memory-leaks.html" rel="nofollow">Avoiding Memory Leaks</a> on Android platform. I am not sure, if my following code...</p>
  
  <pre><code>public class TransactionDetailActivity extends Activity {
  
  private Transaction transaction;
  
  private TextView tvDetail; //static reference
  
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.screen_transaction_detail);
  
      tvDetail = (TextView) findViewById(R.id.detail); //init of reference
  }
  </code></pre>
  
  <p>Can this storing into static reference cause any memory leaks after screen rotation on switching other Activities? If YES, how can I avoid it?</p>
  
  <p>Thanks a lot for any help!!!</p>