Quantcast
Viewing all articles
Browse latest Browse all 5

File Syncing System

Hello,

I want to create a file syncing system between my computer and android device. Instead of describing the system I thought I would just give you guys a sample use case of the system.

  • USER_1 has a computer and an android device
  • On the laptop the user has a folder called FOLDER_1
  • On the android device the user has a folder called FOLDER_2
  • USER_1 puts FILE_1 into FOLDER_1 through his computer, (this file could be anything, .txt, .pdf, .avi, etc)
  • The system then downloads FILE_1 from FOLDER_1 into FOLDER_2 through a wireless connection.
  • Since FOLDER_2 is on the android device, USER_1 is able to access FILE_1 on his/her android device.

Just for further clarification, when I refer to the system I mean the Mobile App that I am creating on Titanium

And for extra info, the computer is running an apache server.

Now I have looked at the Titanium Documentation for networking and filesystem, and I am still unable to grasp how this can be accomplished. Can someone please point me in the right direction.

As of now this is my understanding of the tasks to be accomplished.

  • creating a connection between the computer and android device (no idea)
  • accessing FOLDER_1 from the android device (no clue how this is to be done)
  • checking whether or not there is a change between the two folders (my idea is to compare the directory listings of the two folders)
  • once the difference has been determined download the extra files from FOLDER_1 (again no idea how to do this)
  • closing the connection between the computer and android device (if I can figure out how to create a connection I think I can figure out how to do this)

Thanks


Viewing all articles
Browse latest Browse all 5

Trending Articles