Welcome to my developing memo, I know it is useless for a visitor, anyway welcome also! - Logan676/seadroid GitHub Wiki

Welcome to my developing memo, I know it is useless for a visitor, anyway welcome also!

Things to do

  • I added new menu items in BrowserActivity, only implemented two language edition, need to implement more languages.
  • I plan to add images auto backup features also. When user click the "auto backup" button, seadriod will show some image folders for user to choose, multi-folders supported.
  • Today I plan to figure out how to get the auto backup path and use asyc task to upload changed images.

notice

I only finished part of this feature until now, I have been written code these days, and had some difficulties. I listed the difficulties here, and any tips from you guys will be appreciated.

  • how to list photos folders only
  • how to

Hi all,

view design

I tried to implement the photos auto uploading feature but not finished yet. Good news is I already designed the view for this feature, see the screenshot below. menu When user click "Settings" menu item, it will navigate to preferences menu (Fragment Preferences), which allows users to modify APP features and behaviors, including auto uploading photos feature. Auto Upload Photos. When click the Auto Upload Photos button, it should invoke a new fragment which only lists photos & videos folders for user to choose. You can choose one or more folders at a time, then click Submit auto backup folder button, the APP will start to backup photos & videos and save the preference setting persistently.You can always disable the feature manually, or delete them from the Auto Backup gallery, but this is completely optional. Below is the design view. Submit auto backup folder. There is no right or wrong about the design, I want to take Google+ for example, Google+ defaults to only backup when a WiFi connection is available, as that’s usually faster, and you won’t incur data charges from your mobile carrier. It’s also a good idea to leave the roaming option unchecked, and for those concerned about battery life you can opt to only backup while your phone is charging to preserve battery life. So there is a long way to go when considering UX stuffs. Please be active to comment this topic, any comments from you will be appreciated.

technical design

  • When user turn on the auto backup feature, read the photos backup directory. (Preference)
  • Monitor photo changes to fire an event to start auto backup task. (File Observer)
  • Retrieve the absolute path of each photo to upload.
  • (optional) Resize the photo before uploading.
  • Customize a photo Class, which has ID, Size, uploading progress, uploading date, modified date or other properties. Put photo instances in a queue, use multi-thread to upload, meanwhile cache uploading progress to local database in case that network is down or user quit the process.
  • Send HTTP request to the web server (AsycTask).
  • Save the photos in a folder in your server.
  • Send broadcast to notice user the updating result.

Contribute to branch lguo