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)
精彩评论