In here:

class downloadfiles extends AsyncTask<Void, String, Void> {

        @Override
        protected Void doInBackground(Void... params) {

                  downloaddata();   // a function that access the database and 
pulls
the dumped SQL
                  Dbadapter db = new Dbadapter(this);  // here I am getting 
that the
constructor Dbadapter(universitymaps.downloadfiles) is undefined
because in the Dbadapter class in takes Context and not downloadfiles
                  db.open();

On Jul 1, 12:18 pm, Mark Murphy <[email protected]> wrote:
> Georgy wrote:
> > in the OnCreate (UI mode) , when the app starts just show the progress
> > dialog and run the background thread downloading my data and in the
> > end of it dimiss the progress dialog.  However I am dealing with
> > another issue now with the database adaptor that is malfucntioning.
> > Can I run the progress dialog from the background thread and have the
> > UI handle the downloading or is it now a good approach?
>
> Update your adapter either in publishProgress() or onPostExecute(). You
> cannot update an adapter from a background thread once it is attached to
> a ListView.
>
> If that did not answer your question, I am afraid I misunderstood --
> could you try phrasing your question another way?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Need Android talent? Ask on HADO!http://wiki.andmob.org/hado
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to