You can just use a socket connection. your pc would be your server and the android app would be your client. This way you can send data from your mobile device to your pc.
for example you can refer below link
http://www.javaworld.com/article/2077322/core-java/sockets-programming-in-java-a-tutorial.html
this is basically written in java but similarly you can write it in android.