upload data when switch is pressed

Hi. We're about to create a design project. Just a quick question:

"How do we upload/gather data to an android app (that we're gonna make) when push button/switch is pressed?

Thanks and God bless.

I have no idea on the Android comms side, but the switch part is easy. Just connect the switch to an i/o pin on one side, with pullup resistors enabled, and fround fround? ground :slight_smile: on the other. Then have an "if" that requires that pin to go low (button pressed) and inside there, do the Android stuff.