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));
}
start your activity like:
startActivity(new Intent(CurrentActivity.this,NewActivity.class));