I currently have a calculation being done in my main activity. The calculation is done in function below. The result displays in a text box on the same screen.
ShowNumber.setText(buClickValue)
Bill = buClickValue
fun buCalculateEvent(view: View) {
var Total = "%.2f".format(Bill.toDouble() * .15)
ShowNumber.setText("Based on a 15% tip, you would be " + ( Bill.toDouble() + Total.toDouble()))
}
My issue is trying to get the setText message to appear in another activity. I know how to access the activity via the click of a button. I also know how to generate a toast message in another activity. How can I send information to a textview in another activity?
Thanks in Advance.