I am trying to create an Android App to display my school agenda.
I'm doing it fine at the beginning with loopj. I can connect to my school account and get pages. BUT, the agenda part is a JSP page and i'm entering into "onFailure" method.
I'm using the loopj asynchttp library. I Think it simply does not handle JSP.
Do you have any idea of how to get it ? Once i get it, the goal is to parse it with JSOUP and extract only the data i want to.
Here's my loopj snippet :
// try to get the planning
App_Web.client.get("the_url ...", null, new TextHttpResponseHandler() {
@Override
public void onFailure(int i, Header[] headers, String s, Throwable throwable) {
System.out.println("FAILED");
}
@Override
public void onSuccess(int i, Header[] headers, String s) {
System.out.print("OK");
}
});
I need to be connected before i reach the page.
So i do have to use the loopj session if you tell me to use an other library or use a library which can handle session.
Please tell me if you do not understand something i can maybe help you to understand better.
Cheers,
Maxime