This question may seem common but no valid answer after some days of google search. im opening an alert dialog from an adapter(with a list view)
private void