ActionBar.TabListener is deprecated what should use instead
<p>I am trying to use <code>ViewPager</code> with <code>ActionBarTabs</code>. I referred to some examples and followed them. but the <code>TabListener</code> and <code>ActionBar.Tab</code> used in the below code are deprecated and i do not know what should i use as alternative?</p>

<p><strong>Please provide an example for the new API</strong></p>

<blockquote>
  <p>My Code:</p>
</blockquote>

<pre><code>public class MainActivity extends FragmentActivity implements ActionBar.TabListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {

    }

    @Override
    public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) {

    }

    @Override
    public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {

    }
</code></pre>

<p><strong>gradle</strong>:</p>

<pre><code>    apply plugin: 'com.android.application'

    android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.com.vpager_00"
        minSdkVersion 23
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

    dependencies {
    ccompile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.android.support:design:22.2.0'
    }
</code></pre>