-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto upload feature #253
Auto upload feature #253
Conversation
The current approach followed for implementing the auto-upload feature is something like this: On android 7 and above:
On below android 7:
|
* Upload and Delete file api and implementation (#242) * feat: adds delete file functionality * fix: change api route for file delete * adds basic file upload functionality * fix image null pointer error and switch to query params * adds file upload progress event * adds permission handler before uploading files * adds check for duplicate file upload * fix file not found bug * adds feature to upload video files too * refactor code * adds bottom sheet for displaying upload options * adds upload click listeners and callbacks in ServerFilesActivity * implements camera upload functionality * minor fixes and code clean up * removes upload icon from title bar * fix: forwarding to the desired action after grating permissions * feature to add custom hda servers from json * add debug file * resolve crash on uploading files from movies share * Fixed the landscape bottomSheet hidden by default bug. (#257) * Fixed the landscape bottomSheet hidden by default bug. * Adds android-19 to the travis.yml. * Auto upload feature (#253) * adds auto upload settings to preference screen * adds NEW_PICTURE broadcast receiver * adds upload service * adds upload settings preference fragment * adds hda and share list fetching to upload settings * adds sqlite db for storing image paths * adds custom upload queue * implements upload manager and server connection in background service * fix the UI stuck on file uploads * fix multiple files uploading at the same time * code refactoring * adds upload only on wifi preference option * adds api-19 to travis.yml * adds Job for tracking changes in images content uri * adds job scheduling to the application class * adds net connnectivity job * adds permission checker to auto upload settings * resolve TransactionTooLargeException on android 7
* Fixes app crash if audioFile is Null (#260) * fix app crash if audioFile is Null * adds api-19 to travis.yml * resolve TransactionTooLargeException on android 7 * initial cast files * add app icon * updates logo and css for cast receiver * Adds Chromecast functionality (#273) * Chromecast support (#266) * resolve TransactionTooLargeException on android 7 * adds chromecast support * adds cast session manager and remote media to native player * adds ExpandedController for cast * resolve blank video activity on stopping cast * adds mini controller * adds cast notifications and change app id * resolve crash on opening cast activity through notification * adds cast support for audio files * start casting only after metadata is fetched * adds fixed image audio cast * shift chromecast app_id in api.properties * remove custom audio-play image * adds cast options to image viewer (#269) * New apis for upload & delete and auto upload feature (#272) * Upload and Delete file api and implementation (#242) * feat: adds delete file functionality * fix: change api route for file delete * adds basic file upload functionality * fix image null pointer error and switch to query params * adds file upload progress event * adds permission handler before uploading files * adds check for duplicate file upload * fix file not found bug * adds feature to upload video files too * refactor code * adds bottom sheet for displaying upload options * adds upload click listeners and callbacks in ServerFilesActivity * implements camera upload functionality * minor fixes and code clean up * removes upload icon from title bar * fix: forwarding to the desired action after grating permissions * feature to add custom hda servers from json * add debug file * resolve crash on uploading files from movies share * Fixed the landscape bottomSheet hidden by default bug. (#257) * Fixed the landscape bottomSheet hidden by default bug. * Adds android-19 to the travis.yml. * Auto upload feature (#253) * adds auto upload settings to preference screen * adds NEW_PICTURE broadcast receiver * adds upload service * adds upload settings preference fragment * adds hda and share list fetching to upload settings * adds sqlite db for storing image paths * adds custom upload queue * implements upload manager and server connection in background service * fix the UI stuck on file uploads * fix multiple files uploading at the same time * code refactoring * adds upload only on wifi preference option * adds api-19 to travis.yml * adds Job for tracking changes in images content uri * adds job scheduling to the application class * adds net connnectivity job * adds permission checker to auto upload settings * resolve TransactionTooLargeException on android 7 * Added code to delete file if it already exists. (#277) * Fixes app crash if audioFile is Null (#260) * fix app crash if audioFile is Null * adds api-19 to travis.yml * initial cast files * add app icon * updates logo and css for cast receiver * Added code to delete file if it already exists. * Update Downloader.java * Update Downloader.java * 2.9.2 release in beta channel * Made CastOptionsProvider class public * beta channel release 2.9.3 * reindented code and added .editorconfig (#279) * Use FileProvider to get file URI for API 24+ (#280) * bump to 2.9.4 for release
Squashed commit of the following: commit bd11d72 Author: Chirag Maheshwari <csoni111@gmail.com> Date: Wed Dec 6 05:17:18 2017 +0530 Fixes Audio crash in #284 (#285) * update dependency versions * resolve app crash on loosing net connectivity while playing audio * resolve controls auto hiding after 3 secs and minor playback bugs * add build-tools ver 27.0.1 to .travis.yml * disable aapt2 due to failing unit tests commit f96af3b Author: Chirag <csoni111@gmail.com> Date: Sat Dec 2 00:53:32 2017 +0530 remove duplicate permissions from manifest commit 7577b17 Author: Carlos Puchol <cpg+git@amahi.org> Date: Tue Oct 17 13:58:08 2017 -0700 bump to 2.9.4 for release commit 25149de Author: Chirag Maheshwari <csoni111@gmail.com> Date: Wed Oct 18 02:22:05 2017 +0530 Use FileProvider to get file URI for API 24+ (#280) commit 041f4f7 Author: Chirag Maheshwari <csoni111@gmail.com> Date: Wed Oct 18 02:15:14 2017 +0530 reindented code and added .editorconfig (#279) commit b9b59a6 Author: Carlos Puchol <cpg+git@amahi.org> Date: Mon Oct 16 23:54:33 2017 -0700 beta channel release 2.9.3 commit 5eb5649 Merge: 7688cb6 b468519 Author: megabitdragon <megabitdragon@users.noreply.github.com> Date: Mon Oct 16 21:29:26 2017 -0500 Merge pull request #278 from csoni111/beta Made CastOptionsProvider class public commit b468519 Author: Chirag <csoni111@gmail.com> Date: Tue Oct 17 00:15:40 2017 +0530 Made CastOptionsProvider class public commit 7688cb6 Author: Carlos Puchol <cpg+git@amahi.org> Date: Mon Oct 16 03:19:05 2017 -0700 2.9.2 release in beta channel commit d42a1a6 Author: Ajul Raj <ajulrajar@gmail.com> Date: Mon Oct 16 15:14:52 2017 +0530 Added code to delete file if it already exists. (#277) * Fixes app crash if audioFile is Null (#260) * fix app crash if audioFile is Null * adds api-19 to travis.yml * initial cast files * add app icon * updates logo and css for cast receiver * Added code to delete file if it already exists. * Update Downloader.java * Update Downloader.java commit 03523b0 Merge: 4e515c8 8b8764d Author: Chirag <csoni111@gmail.com> Date: Mon Oct 16 14:55:31 2017 +0530 Merge branch 'master' into beta commit 4e515c8 Merge: bd31a3b 4435b2a Author: Chirag <csoni111@gmail.com> Date: Tue Sep 5 10:13:10 2017 +0530 Merge branch 'beta' of github.com:amahi/android into beta commit 4435b2a Author: Chirag Maheshwari <csoni111@gmail.com> Date: Tue Aug 29 15:40:54 2017 +0530 New apis for upload & delete and auto upload feature (#272) * Upload and Delete file api and implementation (#242) * feat: adds delete file functionality * fix: change api route for file delete * adds basic file upload functionality * fix image null pointer error and switch to query params * adds file upload progress event * adds permission handler before uploading files * adds check for duplicate file upload * fix file not found bug * adds feature to upload video files too * refactor code * adds bottom sheet for displaying upload options * adds upload click listeners and callbacks in ServerFilesActivity * implements camera upload functionality * minor fixes and code clean up * removes upload icon from title bar * fix: forwarding to the desired action after grating permissions * feature to add custom hda servers from json * add debug file * resolve crash on uploading files from movies share * Fixed the landscape bottomSheet hidden by default bug. (#257) * Fixed the landscape bottomSheet hidden by default bug. * Adds android-19 to the travis.yml. * Auto upload feature (#253) * adds auto upload settings to preference screen * adds NEW_PICTURE broadcast receiver * adds upload service * adds upload settings preference fragment * adds hda and share list fetching to upload settings * adds sqlite db for storing image paths * adds custom upload queue * implements upload manager and server connection in background service * fix the UI stuck on file uploads * fix multiple files uploading at the same time * code refactoring * adds upload only on wifi preference option * adds api-19 to travis.yml * adds Job for tracking changes in images content uri * adds job scheduling to the application class * adds net connnectivity job * adds permission checker to auto upload settings * resolve TransactionTooLargeException on android 7 commit 37c8ec2 Author: Chirag Maheshwari <csoni111@gmail.com> Date: Tue Aug 29 09:01:06 2017 +0530 Adds Chromecast functionality (#273) * Chromecast support (#266) * resolve TransactionTooLargeException on android 7 * adds chromecast support * adds cast session manager and remote media to native player * adds ExpandedController for cast * resolve blank video activity on stopping cast * adds mini controller * adds cast notifications and change app id * resolve crash on opening cast activity through notification * adds cast support for audio files * start casting only after metadata is fetched * adds fixed image audio cast * shift chromecast app_id in api.properties * remove custom audio-play image * adds cast options to image viewer (#269) commit ee3ba01 Author: Chirag Maheshwari <csoni111@gmail.com> Date: Tue Aug 22 15:03:19 2017 +0530 resolve TransactionTooLargeException on android 7 (#265) commit a15b3c7 Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Tue Aug 22 15:02:35 2017 +0530 Displays album art as a thumbnail. (#267) commit bd31a3b Author: Chirag Maheshwari <csoni111@gmail.com> Date: Sun Aug 20 00:44:03 2017 +0530 resolve TransactionTooLargeException on android 7 commit 0a84fc8 Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Sat Aug 19 21:32:44 2017 +0530 Fixed auto start of song on audio focus gain (#263) change audio focus to loss only if song is playing commit 8aefb6f Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Tue Aug 15 01:10:21 2017 +0530 Added d-pad functionalities to the ATV (#259) * Added functionality to the remote's play/pause button Added forward and rewind from the d-pad buttons. Added play/pause d pad support to the audio player. * Added an exit pop-up when exitting the video player. * Code refractoring * Added android-19 in travis.yml commit 4848139 Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Tue Jul 25 00:01:15 2017 +0530 added meta-data to movies and removed the greying out in the video player. (#252) Removed the skipNext and skipPrevious buttons from the ATV. Added hand controller funtions. commit 6ed96c9 Author: Carlos Puchol <cpg+git@amahi.org> Date: Sat Jul 22 19:31:26 2017 -0700 beta version 2.9.0 released commit defc83e Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Sat Jul 22 09:43:19 2017 +0530 Improved the fast forward and rewind function in the Android TV (#247) Moved the fragments to the FragmentBuilders to util.Fragments Fixed some performace issues and added subtitles support using the libvlc. commit 4dce959 Author: Carlos Puchol <cpg+git@amahi.org> Date: Wed Jul 19 04:18:12 2017 -0700 bump version for beta release commit 7ead345 Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Wed Jul 19 05:14:28 2017 +0530 Improved the strings for both phone and TV. (#246) * Improved the strings for both phone and TV. * updated intro activity strings updated intro activity strings commit 25e915b Merge: 7e1822a d06b680 Author: Carlos Puchol <cpg@rocketmail.com> Date: Sun Jul 16 14:28:50 2017 -0700 Merge pull request #245 from octacode/beta commit d06b680 Author: octacode <allblue.shasha@gmail.com> Date: Mon Jul 17 00:58:36 2017 +0530 Added the lower row in the TV player. commit 8a34bf7 Author: octacode <allblue.shasha@gmail.com> Date: Sun Jul 16 23:33:28 2017 +0530 Added seekbar to the .avi and other files. Improved indentation. Implemented the skipNExt and skipPrevious in tv player and added a listener so that the next video gets played once the first is over. commit c94ae8b Author: octacode <allblue.shasha@gmail.com> Date: Sun Jul 16 20:07:26 2017 +0530 Removed the videoView and replacced it with surfaceView with the required coding tweaks. Added the vlc basic controls layout for the Android TV. Implemented the rewind and forward button in tvplayer. Added seek bar and some other improvements. Reformatted the code. Removed lint issues. Removed the depriciated overlay fragment. Removed the .avi crash. commit 7e1822a Author: Carlos Puchol <cpg+git@amahi.org> Date: Sun Jul 16 02:50:22 2017 -0700 bump the version after beta release with all audio improvements! commit 728e2f6 Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Fri Jul 14 14:24:29 2017 +0530 Tried injecting the serverClient in the tv audio player (#244) Added background updates for the Tv Audio player Added other rows in the Android TV Implemented play/pause fo ATV audio player Added the progress bar in the Atv music player. Added seek bar in the video fragment. Added functionality to the bottom row. Fixed the audio player bug. Improved the header. Implemented the rewind, fast-forwar, skip-next and skip-previous buttons in the music player. Plays next song once the current song ends. Added some improvements to the Audio and video player of ATV. Updated meta_data for audio player. commit a8ab614 Author: Carlos Puchol <cpg+git@amahi.org> Date: Tue Jul 11 04:20:55 2017 -0700 bump version to 2.6.0 for beta release commit 0459361 Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Tue Jul 11 16:16:03 2017 +0530 Fixed the server select bug by removing the back option. (#241) implemented an algorithm to sort the header items. Fixed the spinner bug. Removed the back button from connection selector. commit 0d95757 Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Mon Jul 10 04:03:43 2017 +0530 Implemented Video player for ATV, improved padding for the main screen, displays meta-data and artwork in the folder, removed background image updates etc. (#238) * Now the meta data and the artwork gets displayed inside a folder also. Removed the ServerTvPreenter Removed background image updates and changed the tile color to transparent. * Improved the background of the tiles * Added the layout for the TV Video player. * Implemented vnative ideo player for Android TV. * Improved padding so that the icons don't touch the border of the listRowItem. * Fixed the videoplayer on launch bug. * Replaced the shadow logos with tv banner Removed title text for video metadata. * Added the shadowless image. commit 94facf8 Author: Carlos Puchol <cpg+git@amahi.org> Date: Sat Jul 8 14:13:53 2017 -0700 Squashed commit of the following: commit 6b95c6ef54151bd3abf6f049c0b19bb376b4f249 Merge: cf81d2f 28bc9df Author: Carlos Puchol <cpg+git@amahi.org> Date: Sat Jul 8 14:03:34 2017 -0700 Merge branch 'meta_data' of https://github.com/octacode/android into octacode-meta_data commit 28bc9df Author: octacode <allblue.shasha@gmail.com> Date: Fri Jul 7 19:29:17 2017 +0530 Displays album art on the Main screen if present. fixed the audio player crash. Changed the back ground color of tiles to white commit 8a2e4bd Author: octacode <allblue.shasha@gmail.com> Date: Fri Jul 7 18:16:47 2017 +0530 Improved the icons. commit f460066 Author: octacode <allblue.shasha@gmail.com> Date: Fri Jul 7 15:07:20 2017 +0530 Moved the settings to the end Added gear icon for the settings and text for others commit 35ccb24 Author: octacode <allblue.shasha@gmail.com> Date: Thu Jul 6 23:30:29 2017 +0530 Implemented the splash activity. commit 4475c17 Author: octacode <allblue.shasha@gmail.com> Date: Thu Jul 6 22:53:17 2017 +0530 Integrated the Introduction activity in the app. commit 02f8ce3 Author: octacode <allblue.shasha@gmail.com> Date: Thu Jul 6 19:47:08 2017 +0530 Added info_background update to the selected icon. commit 762ce29 Author: octacode <allblue.shasha@gmail.com> Date: Sun Jul 2 10:15:06 2017 +0530 Fixes #236 Displayed metadata framework in the movie share if present Changed the size of the movie list item commit cf81d2f Author: Carlos Puchol <cpg+git@amahi.org> Date: Sat Jul 8 13:52:25 2017 -0700 bring back the fake api for the tests and make a note of it commit 2558bfa Author: Carlos Puchol <cpg+git@amahi.org> Date: Wed Jun 28 14:31:27 2017 -0700 bump version for submission commit 4e71152 Author: Carlos Puchol <cpg+git@amahi.org> Date: Wed Jun 28 14:19:56 2017 -0700 don't even check for presence commit fba0be4 Author: Carlos Puchol <cpg+git@amahi.org> Date: Wed Jun 28 14:12:44 2017 -0700 update banner, do not build if the proper api file is there commit de1ee8f Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Wed Jun 28 04:32:29 2017 +0530 Made the MainTVActivity as the leanback_launcher (#232) * Made the MainTvActivity as the leanback_launcher. * Added mime support to the folders inside. Refined the ServerTvFileFragment.java Added background update manager to the serverTvFilesActivity Moved the presenter out of the ServerTVFragment Added background updates at Image mime on the MainTvFragment * Added a temporary banner. commit 52537d8 Author: Carlos Puchol <cpg+git@amahi.org> Date: Tue Jun 27 02:36:42 2017 -0700 beta version 2.5.1 commit dded2ed Merge: 6a58c9d 53bec14 Author: Carlos Puchol <cpg+git@amahi.org> Date: Fri Jun 23 14:42:23 2017 -0700 Merge branch 'master' into beta commit 6a58c9d Author: Kumar Shashwat <allblue.shasha@gmail.com> Date: Sat Jun 24 00:27:01 2017 +0530 Merged the android-tv to beta (#231) * Added a redirect activity. (#220) Login, Main and Introduction activities for Android TV * Removed hardcoded strings and improved code readability, indentation etc (#221) * Improved structuring of TV app code, added settings layout, fixed the filtered servers bug and implemented sign out. (#222) * Implemented the MainTvFragment. (#223) * Integrated Shares as a HeaderItem and its content as ListRowItem. Removed Apps(Permanently) and settings(temporary) Moved the isATV() and Preferences code to the util/Preference.java Implmented ViewStubs. Fixed the ServerFileActivity crash in the android app. Moved the isATV to a different class CheckAtv in the util package Added the settings activity in the MainTVFragment Implemented Sign-out, connection and sign-out preferences. Removed fragment callback to improve structure. Added network calls and made the TV independent of external fragment callbacks. Added settings and separator. Implemented the sort algorithm in the MainTVFragment server select under construction. Reformatted the code and improved the indentation, spacing etc * Reformatted code and improved indentation. * not complete yet. * Implemented the Server selection setting. * Improved reformating and indentation. * Handles the fileOpening at the MainTVActivity (#226) Fixed the server selection bug. * Added browsing functionality to the TV app and merged beta into android-tv (#227) * Video player updates (#216) * adds subtitle view in video player * adds buffer percentage and error toast * adds subtitle fetch and display * resolves buggy video player controls * Updates mime type support for subs and disable them (#224) (cherry picked from commit a3bfc9c) * Feature swipe gestures (#225) * Adds swipe gestures * adds GestureDetector * adds functions to update volume, seek, brightness * minor fixes for smooth gestures * size of the progress bar and minor looks changed * resolves minor issues - resolves video controls opening at the end of swipe gestures - move seek text to the bottom of the video * Added the ServerFileTvActivity * User can successfully browse the content of the shares now. * Improved code indentation and reformatting. * Fixed the crash in the while opening a file during browsing. commit 5b567ec Author: Chirag Maheshwari <csoni111@gmail.com> Date: Fri Jun 23 05:13:54 2017 +0530 Feature native video player (#229) * relasing v2.4.0 * adds Native Video Player * minor bugs resolved * tweak mime types (and add a commented-out toast for testing the native player) * fix: media controls hiding behind soft nav buttons commit 6926d4f Author: Chirag Maheshwari <csoni111@gmail.com> Date: Tue Jun 20 04:31:27 2017 +0530 Feature swipe gestures (#225) * Adds swipe gestures * adds GestureDetector * adds functions to update volume, seek, brightness * minor fixes for smooth gestures * size of the progress bar and minor looks changed * resolves minor issues - resolves video controls opening at the end of swipe gestures - move seek text to the bottom of the video commit a1d077e Author: Chirag Maheshwari <csoni111@gmail.com> Date: Thu Jun 15 00:20:35 2017 +0530 Updates mime type support for subs and disable them (#224) (cherry picked from commit a3bfc9c) commit 658bc79 Author: Chirag Maheshwari <csoni111@gmail.com> Date: Tue Jun 6 04:53:29 2017 +0530 Video player updates (#216) * adds subtitle view in video player * adds buffer percentage and error toast * adds subtitle fetch and display * resolves buggy video player controls
Implements the auto/instant upload feature for images as soon as they are captured using camera. (#243)
Adds following things:
Upload Manager : For managing the uploads and processing upload queue one by one.
Upload Service : The background service which pushes urls of images to be uploaded to the sqlite db, initiates the upload manager and handle notifications for upload start, progress, success and error.
Upload Settings : The preference fragment which shows the UI for enabling/disabling auto upload and selecting the default upload HDA, Share and Path.
Camera Receiver : The Broadcast Receiver which listens for NEW_IMAGE broadcast sent by android device.
Upload Queue Db : The SQLite database for maintaining the upload queue in a persistent storage.
Upload Queue Db Helper : For accessing the SQLite database. Contains functions for CRUD operations on the db.
PhotosContentJob : Job to monitor for changes to photos in the media provider.
NetConnectivityJob : Job to start upload service on gaining network connectivity.