Given this code:
public class MainActivity extends FragmentActivity implements ActionBar.TabListener { public static final int MESSAGE_NOT_CONNECTED = 1; @Over
Try using a WeakReference, as described in this article.
WeakReference