Warning: count(): Parameter must be an array or an object that implements Countable in /home/liquid8/public_html/00_DevSites/drempd/site/pages/blog/fn_get_pots_by_tag.php on line 43
Warning: file_get_contents(CodeExamples/20161218-1.txt): failed to open stream: No such file or directory in /home/liquid8/public_html/00_DevSites/drempd/site/pages/blog/post.php on line 78
Warning: file_get_contents(CodeExamples/20161218-2.txt): failed to open stream: No such file or directory in /home/liquid8/public_html/00_DevSites/drempd/site/pages/blog/post.php on line 78
An Easy Android App GET and POST Content From URL Example
** This post is a work in progress **
It took me a while (much longer than it should have) to be able to start playing around with getting and posting data to a url. I think part of the problem was that many of the tutorials out there try to add unecessary complication -- they'll add an interface where a user has to put in data, etc... and I'm just purely interested in the specific and lone action, without the extra fluff.
So here is my little tutorial on this. For reference, my project is named: 'com.ctitch.birch'. Where relevant in the code below, you'll need to replace that.
1. Create a new project in android studio
2. Add "<uses-permission android:name="android.permission.INTERNET"/>" to your AndroidManifext.xml file. That code should look like:
3. Add "compile 'com.android.volley:volley:1.0.0'" to the dependencies section of your build.gradle (Module:app) file. It should look like:
The Built Environment