开发者

Is there a tutorial that shows how to use tabs and activities to pass values

Is there a 开发者_高级运维way to do this? Is there a way to use a tabhost and activities for each tabs content and pass values via extras. If so can someone post a link how to?


Use Intent.putExtra(..):

intent.putExtra("keyName", "somevalue");

This method is overloaded and takes various types as second argument: int, byte, String, various arrays..

To get the data out use appropriate getXYZExtra(). For String this is:

getStringExtra(String keyName)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜