Wednesday, August 29, 2012

Re: [android-developers] Need assistance reg using single layout, create AlertDialog & handle events in different Activity's

Treking, Thanks
But pls read & understand my question proeprly.
I don't want to know how to handle events in the same dialog, it is how to handle events in different Activity that is calling that AlertDialog.

The link Treking gave you gives you everything you need to know... 

Notice how all the examples in there are setting various click listeners on the dialog?  Given what you've told us and the docs that Treking pointed you to, I would assume that you would want to add parameters to your static method that take a click listener of some sort...  Each activity can have its own set of click listeners and they just pass them in when they need the dialog.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Aug 29, 2012 at 12:14 PM, tvdalia <truptidalia@gmail.com> wrote:
 
Treking, Thanks
But pls read & understand my question proeprly.
I don't want to know how to handle events in the same dialog, it is how to handle events in different Activity that is calling that AlertDialog.
 
- Regards
 

On Wednesday, 29 August 2012 22:07:35 UTC+5:30, TreKing wrote:
On Wed, Aug 29, 2012 at 11:06 AM, tvdalia <trupt...@gmail.com> wrote:
Now how do I handle click events for the ListView that is in AlertDialog ??

Review the Dialogs section in the documentation. It shows how to handle single and multiple choice selections in Diaogs.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment