[英]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
让我简要解释一下......当我点击对话框的 EditText 时
when i click on EditText (Template) then it will open activity.当我单击 EditText(模板)时,它将打开活动。
after i select one option and activity will finish and selected option's value will be set in EditText of Template.在 i select 之后,一个选项和活动将完成,所选选项的值将在模板的 EditText 中设置。
Why not use a Button (perhaps with a drawable) instead of an EditText?为什么不使用 Button(可能带有可绘制对象)而不是 EditText? This makes more sense because the user won't be typing anything into the EditText.
这更有意义,因为用户不会在 EditText 中键入任何内容。
As for passing the data back and forth, just use startActivityForResult() .至于来回传递数据,只需使用 startActivityForResult() 即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.