title: AdMob not displaying in fragment Activity
body: <p>AdMob not displaying in fragment Activity, my code goes as below. but the same code works in normal activity. Not getting what is wrong in this code. please suggest </p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.fragment_delete);
  
      adView = (AdView)findViewById(R.id.adView);
      adView.loadAd(new AdRequest());
  </code></pre>
  
  <p>}</p>
  
  <p>
  </p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:focusableInTouchMode="true"
      android:orientation="vertical" &gt;
  
      &lt;Button
          android:id="@+id/button"
          style="@style/button_style"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginBottom="15dp"
          android:background="@drawable/button_background"
          android:text="@string/delete" /&gt;
  
      &lt;LinearLayout
          xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/advertisement"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical" &gt;
  
          &lt;com.google.ads.AdView
              android:id="@+id/adView"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              ads:adSize="SMART_BANNER"
              ads:adUnitId="6693e1e6c1d543f4" &gt;
          &lt;/com.google.ads.AdView&gt;
      &lt;/LinearLayout&gt;
  
      &lt;TextView
          android:id="@+id/textView_startdate"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:singleLine="true"
          android:text="@string/start_date" /&gt;
  
      &lt;EditText
          android:id="@+id/editText_startdate"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:ems="10"
          android:focusableInTouchMode="false"
          android:hint="@string/dateFormat"
          android:inputType="date" /&gt;
  
      &lt;requestFocus /&gt;
  
      &lt;TextView
          android:id="@+id/textView_enddate"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/end_date" /&gt;
  
      &lt;EditText
          android:id="@+id/editText_enddate"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:ems="10"
          android:focusableInTouchMode="false"
          android:hint="@string/dateFormat"
          android:inputType="date"
          android:singleLine="true" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>AndroidManifest.xml</p>
  
  <p>
  </p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="11"
      android:targetSdkVersion="17" /&gt;
  
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;!-- Required permission to check licensing. --&gt;
  &lt;uses-permission android:name="com.android.vending.CHECK_LICENSE" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@android:style/Theme.Holo.Light" &gt;
      &lt;activity
          android:name=".MainFragmentActivity"
          android:label="@string/app_name"
          android:screenOrientation="portrait" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;meta-data
              android:name="android.app.default_searchable"
              android:value=".extra.SearchManager" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".DeleteRecords"
          android:parentActivityName=".MainFragmentActivity"
          android:screenOrientation="portrait" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.google.ads.AdActivity"
          android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /&gt;
  &lt;/application&gt;
  </code></pre>