Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi..! I have an tab layout application.I need to send data between tabs.when i click a button in 1st tab,then it goes to next tab and display some data.I went through lots of examples but I was unable to have a solution and i was spend my time with lot of days.
Please Someone can help me to find a solution for that.
Its very urgent.
Thank you..
Posted
Updated 12-Oct-14 18:37pm
v2
Comments
Sergey Alexandrovich Kryukov 13-Oct-14 0:37am    
Not clear.
—SA

1 solution

To pass data between different Fragments / Activities use the Application class http://developer.android.com/reference/android/app/Application.html[^]

Define a new class that inherits from this class and add your data as class properties that you can then read throughout the application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900