Rewrite file transfer using Android service mechanism