android - Send an oobject from activity to fragment -


i have object in main activity stores bunch of data xml document , want able access information on several different fragments display information. how can go doing that

your object can implements java.ioserializable . allowed pit instance of object android bundle putserializable. can use setarguments method pass bundle instance through fragment


Comments

Popular posts from this blog

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -

How do I get the nth item in a queue in java? -

How to read input from STDIN in x86_64 assembly? -