I am having a hard time figuring out how to return the current date and time string from the called activity to the calling activity in the setResult statement. From what I have been able to research, it seem to involve creating a Bundle object with putExtras method. Do I use putString method for the string data? It needs a key and a value. Would appreciate some example code. Thanks.
Share
You can do something like this…
and for reading override
onActivityResult…call
data.getData()to get the Uri…call
data.getStringExtra("DATE")to get the date.