I am really confused. I am trying to a small app that collects data(events) from some websites and stores them (name,location, description,time). When user clicked the activity type(for example concert), in list view they will be shown.
In main class, ui is created. Show events button for each type and update database button. When update databasebutton clicked, it goes a new class, dbupdate class and there, it goes to 10 websites in asynctask. Each website has different format and for some websites i use jsoup, for others not. So , should i use a lot of asynctasks or one asynctask?
After finishes taking events, the events will be returned via a wrapper to updatedb class again and then stored to db. or should i do this in postexecute?
I only have one databasehelper class to store database. All delete update add methods inside this. No more another class.
And in main class, when user clicks for example get concerts, a new activity called and different layout of listview. Events will be shown.
If you answer my questions, i really appreciate. because i cant figure out this.
In asynctask, i use and it seems unnecessary.
Aucun commentaire:
Enregistrer un commentaire