Android HTTP GET Login method
I have two activities. The main activity runs the app and initialises the http get request code and parses the response from JSON into a string. The getmethod activity uses a http get method to connect to the server and sends the response back to my main activity. How can I create a log in method, where the user enters their username and password manually and this is passed onto the get method? You can add this code to your main activity - it will do all the heavy lifting for you. /** * Represents an asynchronous login/registration task used to authenticate * the user. */ public class