开发者

Android Class Object problem

开发者 https://www.devze.com 2023-01-21 02:36 出处:网络
HI all, actually i m new in android development. i have one activity class and one simple class(Without Activity). in Simple class i m calling some web service and storing the response in array. aft

HI all,

actually i m new in android development.

i have one activity class and one simple class(Without Activity). in Simple class i m calling some web service and storing the response in array. after that this array i want to access in my activity class. m not able to make the object. how can i do that? i don't want to use bundle. a开发者_JS百科s this array i want to access in more than one class.

please help me.

thanks in advance.


The activity calls/creates the Simple class, right? Pass a reference to the activity object to the Simple class, have the Simple class call the activity back with the data.


You can also use static, but it depends of data.

0

精彩评论

暂无评论...
验证码 换一张
取 消