1. Download our Official Android App: Forums for Android!

Apps Thread or AsyncTask?

Discussion in 'Android Development' started by jfbaro, Apr 6, 2010.

  1. jfbaro

    jfbaro Member
    Thread Starter
    15

    Jan 7, 2010
    62
    0
    15
    Hi,

    I am working on a simple application (studying purposes) which list all the files from a selected folder. On top of that I want to have a search feature where the user can search for files (the code for that is already in place).

    Now, I was thinking about having the search running in the background somehow, whilst the user can still navigate through the folders, create folders and do other stuffs normally. When the search finishes I would get a notification, and then the user could click on it and go to that activity (It ideally should be the same ListView I already use for browsing the files, I would just need to update the Adapter there with the latest processed data).

    What's the best answer for that? Threading or AsyncTask?

    Could anyone help me?

    Cheers
     

    Advertisement

  2. Scythe

    Scythe Well-Known Member
    43

    Apr 6, 2010
    106
    27
    43
    Asynctask if you're new to threaded Java stuff. I do all of my background threading via a normal Java thread, but I enjoy messing with callbacks and such.
     

Share This Page

Loading...