My Application is crashing when I try to start new Activity. Need Help!
LoginAysnc logins = new LoginAysnc((Context) con);
logins.execute();
class LoginAysnc extends AsyncTask<Void, Void, String> {
public LoginAysnc(Context context){
contexts = context;
}
@Override
protected void onPostExecute(String s) {
super.onPostExecute(s);
startActivity(new Intent(contexts.getApplicationContext(),home.class));
}
Maybe you should call the method
That is the whole point of the AsyncTasks. Then your code in onPostExecute will get called. But I agree that you should post your LogCat to see what's wrong