This is my story:
I create a ListView that when clicking on certain item,
a AlertDialog.Builder dialog pop-up with list of items. so far so good.
Now, I expected that when clicking on one of the options from the dialog, ("Edit" for example)
The proper Activity (EditActivity) will rise up. The problem it's not!!
So, here is my questions:
How to open new Activity from the "onClick" method of AlertDialog.Builder?
If it's not possible,
how to return the function parameter 'item' of onClick method to the caller of this dialog?
This is my code: