Georgy wrote:
> 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();

If downloadfiles is an inner class of your activity, use
ActivityName.this instead of this, where ActivityName is the name of
your activity.

-- 
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