Back to project page fh-android-sdk.
The source code is released under:
Copyright (c) 2014 FeedHenry Ltd, All Rights Reserved. Please refer to your contract with FeedHenry for the software license agreement. If you do not have a contract, you do not have a license to use...
If you think the Android project fh-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.feedhenry.fhandroidexampleapp; //from w w w . j a v a 2s. co m import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TabHost; import android.widget.TabHost.TabSpec; public class FHAndroidExampleActivity extends TabActivity { public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.activity_tab); TabHost tabHost = getTabHost(); TabSpec actSpec = tabHost.newTabSpec("FHAct"); actSpec.setIndicator("FHAct"); Intent actIntent = new Intent(this, FHActActivity.class); actSpec.setContent(actIntent); TabSpec authSpec = tabHost.newTabSpec("FHAuth"); authSpec.setIndicator("FHAuth"); Intent authIntent = new Intent(this, FHAuthActivity.class); authSpec.setContent(authIntent); TabSpec syncSpec = tabHost.newTabSpec("FHSync"); syncSpec.setIndicator("FHSync"); Intent syncIntent = new Intent(this, FHSyncActivity.class); syncSpec.setContent(syncIntent); tabHost.addTab(actSpec); tabHost.addTab(authSpec); tabHost.addTab(syncSpec); } }