Lesson 14 Android : How send data back to main Activity ?

مجله پرشین تک
مجله پرشین تک
79 بار بازدید - 7 سال پیش - Sending data back to the
Sending data back to the Main Activity In Android How to pass data from 2nd activity to 1st activity when pressed back? The most common scenario is when a child Activity is used to get user input - such as choosing a color from a color list in our video or entering data in a new screen. In both cases you should use startActivityForResult() to launch your child Activity. This provides a pipeline for sending data back to the main Activity using setResult() from child Activity. The setResult method takes a
7 سال پیش در تاریخ 1396/03/22 منتشر شده است.
79 بـار بازدید شده
... بیشتر