android - Start Activity on AlertDialog -


i using alertdialog add new contact , inside button supposed let user choose picture source, either taking picture or selecting 1 gallery. if use startactivity inside alertdialog, able return alertdialog without alertdialog closing? tried adding dialog dialog in other fields input validation alertdialog seems close before other popup shows up.

you should use activity in dialog mode this. alertdialog not supposed doing , yes close , lose context.

here how it.

<activity android:name=".mydialogactivity"          android:theme="@android:style/theme.dialog"          android:configchanges="keyboardhidden|orientation|keyboard"></activity> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -