I have Parse method "inBackground()" that does not work, for example:
ParseUser.logInInBackground(emailAdd, passwordAd, new LogInCallback()
{
public void done(ParseUser user, ParseException e)
{
if (user != null)
{
finish();
Log.d("message","ok");
}
else
{
Log.d("message","fail");
}
}
});
but if i do:
user = ParseUser.login(emailAdd,passwordAd);
in Asynctask, it works.
My question is: is better to do this queries in Asynctask or an IntentService? What happens if the user press "home" or "back" button?
Thank you