title: How to use JSoup to navigate pages
body: <p>I'm working on an android app which parses an html page and uses its elements and then goes to the next page and extracts its elements. I was previously doing this work with Selenium but when I use it with Android it uses way too much memory and the app stops responding. Now I'm stuck at the login page where I have to enter the username and password. I manage to do that but I'm not able to go to the next page. It returns me the same login page and not the next one. I really need to do this with JSoup because eventually the code has to be integrated with the android app code. Help please!</p>
  
  <pre><code> try {
  
  
          String url = "http://slateisb.nu.edu.pk/portal";
          Document doc = Jsoup.connect(url).
                  followRedirects(true).
                  data("eid", "i110013").
                  data("pw", "001").
                  method(Method.POST).get();
          String title = doc.title();
          print("Title : %s" , title);
  
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  }
  </code></pre>