1

Android - AsyncTask class in Activity class. Context crash the app

view story
linux-howto

http://stackoverflow.com – I'm creating AsyncTask class in Activity class. I need to get the Context in AsyncTask to build AlertDialog. I'm using constructor to point the context. My code: public class Plan extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.plan); //// some Activity code.... class fillSpiners extends AsyncTask<String, Void, String>{ private Context context; public fillSpiners(Context context){ this.context = context; } @Override protected String doInBackground(Str (HowTos)