Could you give a more detailed example - I too would like to see how
an array (of ints, for example) can be accessed in activity 2 from
activity one.  As it is now, I'm loading that data every time I start
a new activity - and it's quite slow!

Thanks

On Feb 14, 7:32 pm, Ganesan V <[email protected]> wrote:
> U can use Indent class of MyActivity from MyActivity2.
>
> Ganesh.
>
> On Sat, Feb 14, 2009 at 2:05 AM, Alex55 <[email protected]> wrote:
>
> > Hello guys,
>
> > I have a very basic question regarding Activities in Android.
>
> > Can I share data types a cross Activities in Android?
>
> > Let's say I have 2 activities, MyActivity.java and MyActivity2.java. I
> > have declared some Strings and Arrays on MyActivity that I would like
> > to access from MyActivity2, is this possible? If so, how can I
> > accomplish this?
>
> > I know its a very basic question, but believe it or not I've had a
> > hard time figuring this one out!
>
> > Many thanks for your prompt response,
>
> > Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to