I am trying to start an activity which calls another sub-activity. That is fine. But the problem is, what if i want to constantly send data from the activity to the sub-activity every, say , 2 seconds and the sub-activity receives that data and appends it below the previous data, when ever it receives it.
How do i do this? I cant always call the startActivity(intent) method cause it would create a new UI every time.
Is there a way to make the main activity run in the background , constantly pumping in data and the sub-activity always visible, showing the data?
Should i be using a service? But how do i invoke an activity from a service? and how to transfer data constantly to the sub-activity?