开发者

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

开发者 https://www.devze.com 2023-02-01 01:11 出处:网络
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(..):

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

精彩评论

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

关注公众号