Ok, I have an idea. Since I have a myXMLHandler object I will create a
public function in it that will fill a temporary ArrayList and return
it to me through this function. Then I will just put it in my
Application object. Only thing is that this way I can not use the
object I defined in myApp class...unless I pass my Application object
to myXMLHandler first :)

Ok that solves it I guess but if there is a better way to do this data
passing please do write.

On Jun 9, 1:47 am, Duskox <[email protected]> wrote:
> Well I used Application because I thought it would be easily
> accessible...but it's not.
>
> If I declare for example a static variable in my Activity class, I
> will still have trouble accessing it since the handler for XML is not
> being called by me, in that case I would just pass the variable, but I
> provide myXMLHandler class as a handler to XMLReader object. Then when
> this XMLReader object is going to parse the XML it uses myXMLHandler
> and in myXMLHandler I have no access to variables in Activity class,
> static or not. Am I making sense? :D

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to