Passing arguments from loading activity to main activity
Posted
by ZelluX
on Stack Overflow
See other posts from Stack Overflow
or by ZelluX
Published on 2010-05-16T16:11:37Z
Indexed on
2010/05/16
16:30 UTC
Read the original article
Hit count: 214
android
I'm writing an application that starts with a loading activity. In the loading activity the app requests html from web and parses the html, then it sends the parsing result to the main activity. The main activity has several tabs, and contents of these tabs are based on the result of parsing.
For example, the result of parsing is a list of strings ["apple", "banana", "orange"], and I need to pass this list to main activity, so that the main activity can create three tabs named after three fruits.
I would like to know if there is any way to pass a list of strings among activities, BTW, is it the common way of do this?
Many thanks.
© Stack Overflow or respective owner