You often need to enter a URL in your phone browser when testing the API or other situations
A long list of URLs it's really troublesome to lose.
Airdroid is very powerful without data cable, but sometimes old disconnect, not very cool. Send to mobile QQ bar still have to manually paste
So I developed a gadget.
Send a command with curl on your PC, enter the URL you want to open, and the phone's browser will automatically open the URL. Of course, mobile phones and PCs have to be networked.
Curl-l-H "Content-type:application/json"-X post-d ' {"Method": "Publish", "Appkey": "5437478bee00dba45fb0dbf5", " Seckey ":" Sec-cfahfo0ixbrc8ow5wq9ml4zjzi6z2ktn3ehzkuigutwj4lln "," topic ":" 862873028440219 "," MSG ":"/HTTP/ Www.baidu.com "} ' http://rest.yunba.io:8080
Implementation principle:
1 Cloud-based push
2 mobile phone first subscription to a topic, topic for the phone's device ID
3 pc with Curl Shangyumba push a message on the line, topic for the phone DeviceID, message with the URL to open. App can get DeviceID of mobile phone
4 app receives message, resolves URL open browser
Github:https://github.com/lesliebeijing/openbrowser
: http://files.cnblogs.com/lesliefang/OpenBrowser.apk
Android Gadget: Use the Curl command on your PC to open your mobile browser and browse for a specific URL