soft keypad is not invoking for edittext in tabhost in android
<p>In my application I have four tabs at the bottom.Each tab has multiple child activities.I implemented TabGroupActivity concept to maintain multiple activities in single tab.The summary is,</p>

<pre><code>      Tab1- A--&gt;B--&gt;C--&gt;--&gt;D--&gt;E.
      Tab2- M--&gt;N--&gt;B--&gt;C--&gt;--&gt;D--&gt;E.
      Tab3- F.
      Tab4- X--&gt;Y. 
</code></pre>

<p>In the above description,In the Tab4,Y activity is a tab activity which contains 3 tabs.when the tabactivity(Y) is started current tab would be the tab at index 0 and this tab contains an edittext field.My question  is, when the tabactivity is started ,if I tap on edittext soft key pad is not invoked.If I tap on other tab and again tap on the first tab then soft key pad is invoking.
can some one help by giving the solution.</p>

<pre><code>here is my tabactivity,




 import android.app.TabActivity;
    import android.content.Context;
    import android.content.Intent;
    import android.content.res.Resources;
    import android.graphics.Color;
    import android.os.Bundle;
    import android.util.Log;
    import android.view.MotionEvent;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.view.inputmethod.InputMethodManager;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.TabHost;

    public class SettingsActivity extends TabActivity {

        private TabHost mth;

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.settings);
            mth = getTabHost();
            TabHost.TabSpec spec;
            Intent intent;
            Resources res = getResources();
            // Creating tabs...

            // loyality tab
            intent = new Intent(this, LoyalityCardActivity.class);
            spec = mth.newTabSpec("LoyalityCard").setIndicator("",res.getDrawable(R.drawable.loyaltycard))
                    .setContent(intent);

            mth.addTab(spec);

            // Preferential tab
            intent = new Intent(this,
                    PreferentialCodeActivity.class);
            spec = mth.newTabSpec("PreferentialCode")
                    .setIndicator("",res.getDrawable(R.drawable.preferentialcode)).setContent(intent);
            mth.addTab(spec);

            // Business tab
            intent = new Intent(this,
                    BusinessTravellersActivity.class);
            spec = mth.newTabSpec("BusinessTravellers")
                    .setIndicator("",res.getDrawable(R.drawable.businesstravellers)).setContent(intent);
            mth.addTab(spec);

            /*mth.getTabWidget().getChildAt(0).setPadding(2, 2, 2,2);
            mth.getTabWidget().getChildAt(1).setPadding(2, 2, 2, 2);
            mth.getTabWidget().getChildAt(2).setPadding(2, 2, 2, 2);
            mth.getTabWidget().setPadding(2, 2,2,2);*/

            mth.getTabWidget().getChildAt(0).setBackgroundColor(Color.TRANSPARENT);
            mth.getTabWidget().getChildAt(1).setBackgroundColor(Color.TRANSPARENT);
            mth.getTabWidget().getChildAt(2).setBackgroundColor(Color.TRANSPARENT);

            // setting current tab to loyality card
        //mth.setCurrentTab(1);
            Button btn_settings_back= (Button) findViewById(R.id.btn_settings_back);
            btn_settings_back.setOnClickListener(new OnClickListener() {


                public void onClick(View v) {
                    finish();
                }
            });

        }

           }    
</code></pre>
