问题
I wish to control my computer remotely from my android mobile. I know that apps are available for the same. But what if i wish to develop one on my own? Kindly someone suggest the available API's to remotely control my pc from mobile and perform tasks, like shutting it down, opening various applications of my pc etc.
回答1:
available API's to remotely control my pc from mobile and perform tasks, like shutting it down, opening various applications of my pc
There are no "available API's to remotely control my pc from mobile and perform tasks, like shutting it down, opening various applications of my pc". You would write all of that yourself.
回答2:
You can use socket programming where your computer will be the server and your phone will be the client. You can connect to your computer using a TCP connection and a fixed port number. You need to write a program for both sides.
Once you are able to send a specific message from your android device to your computer. You should easily perform the necessary task (like shutting it down, opening various applications of my pc etc
) on the server side.
There are a lot of android socket programming tutorials on the internet.
来源:https://stackoverflow.com/questions/10137746/creating-android-app-to-remotely-control-my-computer