I've been able to write a thread into my app which basically does a loop in the background perfroming detection for a device being added or removed.
works great!
i am trying to implement another thread to check for a file on the found device...but i still haven't figured out threading enough to make this work, the versions i try to implemt are either looping along with the initial loop or cancelling itself because its already running.
i've been trying to put a variable in that would switch the thread off, but it doesn't seem to work.
i'm not necessarily looking for the code to use but more the logic i should use to make this work.