Re: [android-developers] Share data between an activity and an event listener (separate class file)

2012-06-29 Thread StSch
n, 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, &quo

[android-developers] Share data between an activity and an event listener (separate class file)

2012-06-29 Thread StSch
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 thi

Re: [android-developers] Preferred way to prevent the layout (example included) from getting reset when the screen orientation changes?

2012-06-29 Thread StSch
Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Sun, Jun 24, 2012 at 7:10 AM, StSch > wrote: > >> Can I please point you to my question on Stack Overflow? >> >> >> http://stackoverflow.com/questions/111759

[android-developers] How to prevent the layout from getting reset when the screen orientation changes?

2012-06-29 Thread StSch
I am aware of this article (http://developer.android.com/guide/topics/resources/runtime-changes.html) and the possibilities to handle runtime changes. Nevertheless I am a bit stuck, I didn't make it to prevent my layout below from getting reset when the screen orientation changes. I add 2 butto

[android-developers] Preferred way to prevent the layout (example included) from getting reset when the screen orientation changes?

2012-06-29 Thread StSch
Can I please point you to my question on Stack Overflow? http://stackoverflow.com/questions/11175966/how-to-prevent-the-layout-from-getting-reset-when-the-screen-orientation-changes I am a bit stuck. It's a pretty simple example, the checkbox's event handler adds one button to the layout. I chang