У меня есть этот фрагмент кода:
public static class ExportDatabaseFileTask extends AsyncTask<String, Void, Boolean>
{
private final ProgressDialog dialog = new ProgressDialog(ctx);
protected void onPreExecute();
protected Boolean doInBackground(final String... args);
protected void onPostExecute(final Boolean success);
}
Я выполняю эту тему как
new ExportDatabaseFileTask().execute();
Как вы видите, я использую ctx в качестве переменной Context в новом вызове ProgressDialog, как передать контекст в метод вызова?
к этому:
new ExportDatabaseFileTask().execute();*