I maybe should have said:
Can I access attributes/member variables of my activity in my event 
listener? That is: Manipulate the date in my listener and have the updated 
data in my activity?

Am Freitag, 29. Juni 2012 21:27:38 UTC+2 schrieb MagouyaWare:
>
> This is a basic java question, not related to Android in any way...
>
> To do that you can create a constructor that takes as parameters the data 
> you want you're listener to have access to.  Alternatively you can add 
> getters/setters to add that data you want separately. ..
> On Jun 29, 2012 1:21 PM, "StSch" <steffen.schliwin...@gmail.com> wrote:
>
>> I have an Activity with a button and register an OnClickListener on this 
>> button that is defined in a separate class file. Can I share data between 
>> these 2 resources? That is: Can I access attributes/member variables from 
>> my activity in my event listener?
>>
>> Regards,
>> -Steffen-
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to