title: Activity buttons do not trigger onClick function after network connectivity is disabled
body: <p>I am writing an application which sends HTTP requests to a server if the network is available or queues them up if the network is not available. I am facing an issue with buttons on the activity not working after disabling the network (via <code>F8</code> or Airplane mode). Before the network is disabled the buttons correctly trigger their onClick functions, after disabling the network the buttons simply do not trigger their onClick functions.</p>
  
  <p>Below is the code I'm using. It's a very trivial application at the moment (all stub code generated by Eclipse) and I just cannot work out what is causing this issue. Has anyone come across any issues like this before? Thanks for any advice.</p>
  
  <p><em>Running this code in an Android 4.0.1 AVD on the Emulator.</em></p>
  
  <p><strong>Activity_Main.xml</strong></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;   
  
  &lt;Button
      android:id="@+id/button1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/textView1"
      android:layout_alignParentBottom="true"
      android:layout_marginBottom="24dp"
      android:text="Send Request"
      android:onClick="SendRequestOnClick" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>public class MainActivity extends Activity
  {
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu)
      {
          getMenuInflater().inflate(R.menu.activity_main, menu);
          return true;
      }
  
      public void SendRequestOnClick(View v)
      {
          Log.i(getPackageName(), "Button 1 Clicked!");
  
      }     
  }
  </code></pre>