public String getSessionID(String user) {
String userName = user;
App42API.initialize(getContext(),
"******",
"******");
SessionService sessionService = App42API.buildSessionManager();
sessionService.getSession(userName,new App42CallBack() {
public void onSuccess(final Object response)
{
Session session = (Session)response;
s_id = session.getSessionId();
}
public void onException(Exception ex)
{
System.out.println("Exception Message"+ex.getMessage());
}
});
return s_id;
}