When does this occur? and Why? Android App Activity being shutdown 2.3.3 emulator with error
<pre><code>08-16 17:37:37.694: ERROR/InputDispatcher(61): channel '40803d28 com.myApp.android/com.myApp.android.PickActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x8
08-16 17:37:37.694: ERROR/InputDispatcher(61): channel '40803d28 com.myApp.android/com.myApp.android.PickActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
</code></pre>

<p>Sometimes I also see this message.</p>

<pre><code>08-16 17:44:21.092: ERROR/InputDispatcher(61): Received spurious receive callback for unknown input channel.  fd=177, events=0x8
</code></pre>

<p>So this only only happens in 2.3.3 emulator and not on 3.0 or 2.2 or any other emulators I have tested on and even works great on my Froyo Droid Incredible real device. No errors nothing.</p>

<p>Whenever I open the App's main Activity in 2.3.3 emulator, after a little bit like 5-7 secs invariably I see the log message above and the activity closes down. I am not sure what this means. I have never seen this before.</p>

<p>Here are some code snippets of the activity. This is the main activity of the App that is displayed to the user when logged in to the App and then they can choose from 4 icons that launches their respective activities.</p>

<p>Also I guess worth mentioning is that this Activity has a MillenialMedia Banner Ad bottom that once again fetched Ads and works fine in all other emulators and devices.</p>

<p>public class PickActivity extends Activity implements OnClickListener, MMAdListener{</p>

<pre><code>@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
                getWindow().setFormat(PixelFormat.RGBA_8888);
        setContentView(R.layout.main);
        // Instantiate shared preferences
        mAppPreferences = PreferenceManager.getDefaultSharedPreferences(this);
        mEditor = mAppPreferences.edit();
        // Instantiate the views
        setupViews();
        Hashtable&lt;String, String&gt; map = new Hashtable&lt;String, String&gt;();
        map.put("keywords", "shopping,deals,money,coupons,sports");
        //include additional metadata or settings in the hashmap

        MMAdView adView = new MMAdView(this, MYAPID, MMAdView.BANNER_AD_BOTTOM, 30, map);
        adView.setId(123);
        FrameLayout adFrameLayout = (FrameLayout)findViewById(R.id.mm_layout);
        LayoutParams lp = new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT);
        adFrameLayout.addView(adView, lp); 

}
</code></pre>

<p>Then I have implemented onStart, onStop and onResume.</p>

<p>Here is the setupViews method</p>

<pre><code>private void setupViews() {

        yourA = (ImageButton)findViewById(R.id.MA);
        yourA.setOnClickListener(this);
        yourC = (ImageButton)findViewById(R.id.MC);
        yourC.setOnClickListener(this);
        yourM = (ImageButton)findViewById(R.id.MM);
        yourM.setOnClickListener(this);
        yourS = (ImageButton)findViewById(R.id.MS);
        yourS.setOnClickListener(this);
        //Action bar Help button
        helpButton = (ImageButton)findViewById(R.id.ActionHelpButton);
        helpButton.setOnClickListener(this);
        // Action bar Video button
        videoButton = (ImageButton)findViewById(R.id.ActionVideoButton);
        videoButton.setVisibility(View.VISIBLE);
        videoButton.setOnClickListener(this);
        // Footer marquee TextView
        footerText = (TextView) findViewById(R.id.FooterMarquee);         
    }
</code></pre>

<p>I have also added the MMAdListener default methods in the class with Log messages.</p>

<p>Please help me find out why this is happening only in 2.3.3 emulator and activity is shut down.</p>

<p>Thanks for your help.</p>
