method:getTag ( )
return type:String
content:ใช้คืนค่า tag ของ Object TabHost.TabSpec
example:public class AndroidBamboo extends Activity
{
public void onCreate( Bundle savedInstanceState )
{
super.onCreate ( savedInstanceState );
TabHost tab_host = new TabHost ( this );
tab_host.setup();
TabHost.TabSpec tab_spec = tab_host.newTabSpec ( "tag_one" );
Button button = new Button ( this );
tab_spec.setContent ( button.getId ( ) );
tab_spec.setIndicator( "TestButton" );
tab_host.addTab ( tab_spec );
String tag = tab_spec.getTag ( );
setContentView ( tab_host );
}
}