简体   繁体   中英

How to pass data from 2nd activity to 1st (Popup) without press back button and close button?

I want to call data of activity using popup. Let me explain in brief... when i click on EditText of a dialog box对话框

when i click on EditText (Template) then it will open activity. 活动,当我点击 EditText(Template)

after i select one option and activity will finish and selected option's value will be set in EditText of Template.

Why not use a Button (perhaps with a drawable) instead of an EditText? This makes more sense because the user won't be typing anything into the EditText.

As for passing the data back and forth, just use startActivityForResult() .

选择模板前

选择模板后

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM