Peter Storch
b5acfa022d
try appCtx to persist NextCloud URI permission
...
for #1080
Also fixing a missing break in a switch statement.
2022-02-26 23:42:50 +01:00
Peter Storch
1099102e29
Change handling of Uri and DocumentFile handling for #1080
...
The Uris from Intent.getData() and DocumentFile.getUri() seems to be different. I think PreferencesUtils should only work with the original Uri as well as the permission handling logic.
IntentUtils.toDocumentFile can be used to convert it to a DocumentFile later on to actually work with.
Adds "No file manager found" message if no activity with OPEN_DOCUMENT_TREE is found. #1095
Removed deprecation of `startActivityForResult`.
2022-01-19 22:26:52 +01:00
Dennis Guse
619b82a23e
Package structure: moved functionality from FileUtils to MarkerUtils.
...
Part of #963 .
2022-01-16 21:39:16 +01:00
Dennis Guse
7caf33fb66
Package structure: moved share functionality.
...
Part of #963 .
2022-01-15 22:28:47 +01:00
Dennis Guse
0645628d7e
Package structure: moved models and database.
...
Part of #963 .
2022-01-15 22:24:59 +01:00
Peter Storch
1631836327
Try to takkle down export dir issues
2022-01-02 21:19:43 +01:00
Peter Storch
b287967bc4
fix persistable directory permissions
2021-12-15 21:39:10 +01:00
Peter Storch
bb7efaa87c
fix #1025 exportdir failed to create document
...
fix #254 illegal filename characters
2021-11-29 08:15:08 +01:00
Dennis Guse
b6b4c5aa39
Cleanup: move PreferencesUtils into settings package.
...
Part of #963
2021-10-12 22:24:51 +02:00
Dennis Guse
eac3d4b3db
Cleanup: SharedPreference as static variable.
...
Fixes #961 .
2021-10-12 22:24:51 +02:00
Dennis Guse
fc0cec6157
Share picture: if sharing a track, a share picture (PNG) is created in addition.
...
Fixes #363 .
2021-08-01 18:22:42 +02:00
Dennis Guse
54be1b74fb
Lint: fix AGP7.0.0 found linting errors.
2021-07-29 22:54:57 +02:00
Dennis Guse
c289fd174d
Cleanup.
2021-07-04 16:53:10 +02:00
Dennis Guse
15fbd90ca4
Performance: Keep reference to sharedPreferences.
...
So far, we opened the SharedPreferences very often, which is very slow; also happened in the UI thread a lot.
Fixes #642 .
2021-03-15 12:01:32 +01:00
Dennis Guse
d157e94220
Marker refactoring.
...
Location values are stored directly.
2021-01-24 22:21:37 +01:00
Dennis Guse
eb02c4c469
Marker images can now be shared from the list directly via the context menu (like tracks).
...
Fixes #495 .
2020-12-25 18:36:41 +01:00
thrillfall
b270c45691
- add default export directory
...
- add instant post workout track export
2020-10-16 12:23:39 +02:00
Dennis Guse
e939778beb
Refactor: use marker instead of waypoint.
...
Fixes #389 .
2020-09-23 17:16:34 +02:00
Román
a6e275f8aa
Several hidden bugfixes around Track.Id
2020-09-09 17:53:07 +02:00
Dennis Guse
74e09e1fa9
Refactoring to marker: data class and ContentProviderUtils.
...
#389
2020-09-05 10:20:16 +02:00
Dennis Guse
bcbaf4985a
Implement Track.Id and Waypoint.Id (without tests).
...
Fixes #276 .
2020-08-22 23:18:48 +02:00
Dennis Guse
d9dfa6d746
Dashboard API: add data transfer as GPX and removed unnecessary IntentChooser.
2020-06-13 17:56:59 +02:00
Dennis Guse
3a5220546e
Dashboard API: fallback to "open as KMZ" implemented as proxy activity.
...
We are not allowed to query for installed packages as of Android R (API 30).
2020-06-13 17:56:59 +02:00
Dennis Guse
0dfd55ed52
Settings: added default sharing track file format.
...
Fixes #225 .
2020-05-24 10:58:43 +02:00
Román
a6f03d0f23
Share pictures from marker.
...
Fixes #89 .
2020-03-18 19:33:57 +01:00
Dennis Guse
ac528f9a10
Use trackname for sharing files.
...
Fixes #130 .
2020-03-16 21:43:23 +01:00
Peter Storch
ad990e8cd7
Forward multiple tracks to dashboard
2020-02-04 00:07:17 +01:00
Dennis Guse
76656997ef
Sharing: check if a compatible app is installed rather than trying it.
2020-01-11 20:27:43 +01:00
Dennis Guse
b4d5eb0eec
Refactoring: SharedPreferences are not provided via DataSource anymore.
2020-01-11 19:31:58 +01:00
Dennis Guse
27e50b2dd9
Moved ContentProvider into separate package.
2020-01-11 19:31:58 +01:00
Dennis Guse
0e9b68c2a1
Cleanup.
2020-01-11 19:31:58 +01:00
Peter Storch
a3eb107068
integrate dashboard plugin mechanism
...
To be able to integrate the OSMDashboard https://github.com/OpenTracksApp/OSMDashboard ,
which addresses #79 . Also other Dashboards will be possible.
2020-01-02 17:45:01 +01:00
Dennis Guse
f3a308e669
BREAKING CHANGE: pictures are now stored in getExternalFilesDir(); no migration takes place!
2019-12-29 15:43:06 +01:00
Dennis Guse
759aeb6ed6
Removed DescriptionGenerator interface.
2019-12-22 18:59:23 +01:00
Dennis Guse
12023d51ae
Move data classes into separate package.
2019-12-22 18:59:23 +01:00
Dennis Guse
8cb01a1027
Bugfix: sharing a track was not adding the file(s).
...
While migrating to enable sharing multiple tracks a configuration option was missed.
2019-11-29 22:39:36 +01:00
Dennis Guse
d7526f93b8
Cleanup: removed ContentProviderUtils interface.
2019-11-25 23:02:48 +01:00
Dennis Guse
9d915b5640
Cleanup.
2019-11-03 00:13:14 +01:00
Dennis Guse
5711757110
If sharing multiple tracks, share them as separate files.
2019-10-29 17:43:23 +01:00
Dennis Guse
e1c33dad43
Move to Android ShareSheet.
2019-10-29 17:34:21 +01:00
Dennis Guse
9dd2f7d1c1
KML/KMZ export and share: add configuration to export with trackdetail without the rest.
...
Fixed some issues in TRACK_ONLY mode as too much data was exposed.
2019-09-15 09:47:48 +02:00
Dennis Guse
87d92d25f9
Cleanup: mainly code formatting and made LocationIterator implement autoclosable.
2019-09-08 12:39:40 +02:00
Dennis Guse
72b1ca82ed
Moved debug warnings into Startup.
2019-09-02 15:50:35 +02:00
Dennis Guse
6e410e049d
Bugfix: creating waypoint from camera works now.
...
Introduced in commit 677b691ef1
2019-08-26 22:57:00 +02:00
Dennis Guse
5788f99b20
Catch ActivityNotFound exception for starting geo-data intents.
2019-08-25 22:20:08 +02:00
Dennis Guse
3a7562d96c
Modified "show on map" functionality to only share locations and no other track data.
2019-08-25 00:21:36 +02:00
Dennis Guse
d79fa07834
Share multiple tracks from TrackListActivity.
2019-08-24 17:51:57 +02:00
Dennis Guse
677b691ef1
Moved special intent creation to IntentUtils.
2019-08-23 07:33:58 +02:00
Dennis Guse
5e74e80a9a
Use correct mime type for KML and KMZ.
2019-08-23 07:19:40 +02:00
Dennis Guse
70b5d799a2
Share marker works everywhere and share track from TrackDetailActivity.
2019-08-23 07:01:14 +02:00