Loic Blot
a17bffb68c
Re-initiate the SSL trust manager and remove org.apache.commons.httpclient
...
+ fix a wrong string
2017-11-03 12:21:16 +01:00
Loic Blot
5cb6c63f16
Refactor the whole OCHttpClient to use modern android http client
2017-11-03 12:16:54 +01:00
Loic Blot
c08e0fbd51
use java.net.URL instead of URI
2017-10-30 09:17:02 +01:00
Loic Blot
8e15e18b09
Code style fixes
2017-10-30 08:37:08 +01:00
Loic Blot
eae84dadfb
Fix a NullPointerException reported by Play store
2017-10-30 08:34:17 +01:00
Loic Blot
587099dba7
Fullsync: add a complete sync message when sync is done instead of telling nothing to sync
2017-09-12 08:10:58 +02:00
Loic Blot
47abfac7c3
Fix wrong Thread created Toast
...
This fixes #153
2017-09-12 08:03:06 +02:00
Loic Blot
3edd898d7d
Full sync is now fixed
...
Full sync was previously not really good, Sms were ordered by date DESC, then the last date was good and when multiple loop iterations occurs, only 1 iteration happened
SmsBuffer now owns LastMessageDate instead of AndroidSmsFetcher
Full sync is now owned by AsyncsmsSync instead of MainActivity
Last message date is more accurate and less error prone
2017-09-11 21:56:34 +02:00
Loic Blot
56eecb98bc
Remove a useless try/catch
2017-09-04 22:28:42 +02:00
Loic Blot
0407f719ef
Add SmsEntry object to remove a JsonObject unoptimized storage object
2017-09-04 22:27:36 +02:00
Loic Blot
ebfd1ccfbf
SmsBuffer: add push helper function to factorize code
2017-09-04 20:26:25 +02:00
Loic Blot
d092ba4a4d
Fix JNI implementation, don't use static methods in Java
2017-08-24 08:27:24 +02:00
Loic Blot
11bbed02b8
Don't let Java choose when cleaning SmsBuffer, do it ourself
2017-08-24 08:27:24 +02:00
Loic Blot
5e6a1fc28e
SmsBuffer is now working, replace json objects with the SmsBuffer on sync
2017-08-24 08:27:24 +02:00
Loic Blot
47c2923d0e
Update tools versions & prepare JNI work to reduce memory & CPU usage
2017-08-24 08:27:24 +02:00
Loïc Blot
c1abafc72c
SmsDataProvider: factorize field names
2017-08-22 16:50:16 +02:00
Loic Blot
c125201c4b
Code style fixes
2017-06-07 00:26:05 +02:00
Loic Blot
0eb1af2da8
BindObjectPref now takes resId and resolve setting directly
2017-06-07 00:00:43 +02:00
Loic Blot
1d45d0a318
Add an option to disable sync notification
...
Fix #150
2017-06-06 23:50:20 +02:00
Loïc Blot
d4904797f7
Contactload code cleanup
2017-05-22 14:25:31 +02:00
Loïc Blot
a5a03dbfcd
More code cleanup
2017-05-22 14:10:36 +02:00
Loïc Blot
e2c65cf867
Code cleanups
2017-05-22 13:26:04 +02:00
Loïc Blot
c682d7fd0d
Properly handle InvalidArgumentException when URI is not valid in HTTP connector
...
This fixes issue #149
2017-05-03 15:47:29 +02:00
Loic Blot
afa0fc2fac
Add a feature to reinitialize synchronization cursor
2017-03-23 20:43:32 +01:00
Andy Scherzinger
f83eebe4dd
Drawer, Toolbar and minor UI optimizations ( #145 )
...
* initial add of toolbar and hamburger menu to main activity
* toolbar added to preferences and accounts screens
* fixed original string (name)
* Layout fix for content
* initial add of toolbar and hamburger menu to main activity
* remove unnecessary padding bottom
* fix styling and paint login activity in blue
* toolbar added to preferences and accounts screens
* Layout fix for content
* remove unnecessary padding bottom
* fix styling and paint login activity in blue
* fixes after rebase
* consolidate style since minVersion=16, make drawer to be behind the systembar
* optimize drawer header
* add back navigation to login activity, fix spinner background
* add back navigation
* more launcher icon to mipmap folders
* fix identation
* fix license header
* revert code style deletion, change identation
* proper notification icon
* proper resolution for login logo
* fix large notification icon
* removed unused Eclair switch since support is v16+
* only use small notification icon
* spaces->tabs
* fix toolbar style for Android 4.x
2017-03-23 20:16:31 +01:00
Loïc Blot
8b482f51c4
HTTPClient: add redirection follower
2017-01-20 11:35:19 +01:00
Loïc Blot
82d1de3463
HTTPClient: send application name & version code in User Agent
...
Also ignore cookies like owncloud android lib & set http version to 1.1
2017-01-20 11:35:11 +01:00
Loic Blot
bcefc1fdf2
HTTPClient: Permit circular redirection.
...
This should fixes #128
2017-01-18 23:00:18 +01:00
Loic Blot
62ad5b1d34
Import some sources from legacy HTTP Client to permit using self signed certificates like before
...
It's not the perfect solution but this works
Rename HTTPRequestBuilder to OCHttpClient & make it child of HttpClient
2016-12-20 22:17:44 +01:00
Loic Blot
25e2d13409
Rewrite our HTTP Client to remove the owncloud library dependency and doing authentication ourselves
...
* Fixes issue #122
* Cleanup the code
* Drop owncloud library support, this will help the unofficial F-Droid build
2016-12-20 21:34:52 +01:00
Loic Blot
1bb93a5068
Verify connection when restoring messages
2016-12-08 22:14:29 +01:00
Loic Blot
819fa4543d
Don't restore already existing messages
2016-12-08 21:43:32 +01:00
Loic Blot
9bb0a7d2f2
Add a label for progression, show it to user and fix sms restauration.
...
This is almost finished but needs some polish
2016-12-08 21:15:58 +01:00
Loic Blot
13ad6237fe
Restore the default SMS app at the end
2016-12-08 01:18:28 +01:00
Loic Blot
184d2e12fd
Add some preparations for progress
2016-12-08 01:14:12 +01:00
Loic Blot
b13e98e2dc
Feedback when restore is finished
2016-12-08 00:58:27 +01:00
Loic Blot
09ab64044d
Now require Android 4.1 or greater. Also better feed back on restore messages for Android 4.3 or lesser versions
2016-12-08 00:33:41 +01:00
Loic Blot
e06377d64b
Permit to restore messages, but it's not finished yet
...
Remaining problems:
* date is not properly retrieved on the phone
* no feedback when connectivity errors
* no feedback when processing
* no feedback when finishing
2016-12-08 00:23:16 +01:00
Loic Blot
45d7352c32
Require Android 4.4 to restore messages
2016-12-07 08:41:31 +01:00
Loic Blot
f05eabe94b
Add a loop which retrieve all messages without doing anything
2016-12-07 00:13:10 +01:00
Loic Blot
80a91635dd
RestoreMessagesActivity: find account to load
...
+ some fixes
2016-12-06 23:17:46 +01:00
Loic Blot
f76de90a6e
Better OCSMSOwncloudClient object creation
2016-12-06 23:04:51 +01:00
Loic Blot
a3088e7718
Move request building outside of OCSMSOwncloudClient, adding HTTPRequestBuilder
2016-12-06 22:50:39 +01:00
Loic Blot
65c2b9b99f
Rename SmsFetcher to AndroidSmsFetcher
2016-12-06 20:37:22 +01:00
Loic Blot
8395ac5bb4
SmsFetcher: do the cursor checks directly in SmsDataProviderAPI
2016-11-02 08:09:06 +01:00
Loic Blot
8212ef63aa
SmsFetcher: improve robustness of the synchronization
2016-11-02 08:03:51 +01:00
Loic Blot
fda38cf855
when using bulk limit order by date DESC not _id ASC.
...
this permit to sync recent messages instead of older when doing sync now action
2016-10-22 19:20:04 +02:00
Loic Blot
92713ded76
MailboxID enum now provided directly the URI
2016-10-22 19:11:37 +02:00
Loic Blot
792b6137fd
Refactor SMSFetcher
2016-10-22 18:44:23 +02:00
Loic Blot
19e564213b
Add binding preferences
2016-10-22 17:31:33 +02:00