Transferring data across activities
<p>I have a GCM class, which gets a message that has 2 separate strings from Google GCM server. I need to use those 2 strings inside another activity of my application. The problem is that i do not know in advance how many these gcm messages are gonna be. I need to store these values and use them in another Activity to present them to the user inside a layout. I' m finding this difficult cause  first of all, i don't know how many these messages are gonna be, so i can't draw the layout in advance, and secondly cause i haven't found an effective of storing these 2 strings together, so that i am able later to manipulate them.</p>

<p>Each group of these two strings, belong to a user and should be stored in a way so that they can be retrieved separately from other group of strings.</p>

<p>I have tried to do this by using SharePrefrences or intents but i can't find a proper solution to this. </p>

<p>I know my question might seem silly, and i am not asking for a solution, but i am stuck and i would be really glad, if someone could give me some advice or guidance on some workaround to this, or where to look..</p>
