I wasn't sure if the file was dependent on the context of where it was originated.
Since it was first written from DeviceListActivity, I used getParent() so the context would be the same.

If this isn't necessary we can just use this context.