If I press the button on Android, I want to run a function in the C# program on my laptop.

Asked 2 years ago, Updated 2 years ago, 37 views

Press the button in the

Android laptop c# any function in a program I want to run.

What technology should I use at this time? Are you using a socket?

Finally, I want to press the button on Android to react to the laptop C# program and make the alarm sound.

I don't have a clue because I'm a beginner Help me ㅠ<

android c#

2022-09-22 21:51

1 Answers

That reminds me of two ways.

1 - Use a socket

This is how you open the socket in the C# program and access it from Android

It's certain, but it's more annoying than using the HTTP protocol

2 - Use the web

Press button in Android app to request to designated host

This is how to open a program created with C# on the server

It's easy to make.


2022-09-22 21:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.