i have c# program running on my pc listenning http requests and i try to make an application which gets a file from my pc via HttpGet.
new HttpGet(url + filepath);
the file is in the same directory and the path is C://Users/abc/def/test.txt
but if i write this to filepath i can not get the file. what should i write to filepath?
Thanks in advance
You need to create an AsyncTask to do your request 'cause since Android Honeycomb, you cannot add a network request on the main thread.
Here is an example :