Commit graph

384 commits

Author SHA1 Message Date
jacques
a03c2dfe77 Add Prise test 2020-09-16 17:10:44 +02:00
jacques
171147b6c5 Change some comments 2020-09-16 17:09:08 +02:00
jacques
deb61fe1cf Fix some tried does not work. 2020-09-12 19:05:42 +02:00
jacques
07c3da06af Small change in CHANNEL_ID definition
Samll chnges in comments
2020-09-11 21:46:03 +02:00
jacques
86c9023f80 Remove unused files 2020-09-11 21:42:11 +02:00
jacques
b055892beb Changes without effect 2020-09-11 17:37:15 +02:00
jacques
8d10e9115a End merge feature/fixNotification 2020-09-11 17:21:48 +02:00
jacques
d6a30a54f0 Remove unused method; 2020-09-11 17:21:43 +02:00
jacques
d7b193471e Optimize import 2020-09-11 17:21:39 +02:00
jacques
3b7082b36e Remove unused method 2020-09-11 17:21:24 +02:00
Jacques Foucry
5de270def2 Merge branch 'feature/fix-notification' into develop 2020-09-11 16:47:38 +02:00
jacques
c9c5d7e9f3 Minor change in comments 2020-09-11 11:34:05 +02:00
jacques
f27abe2d8b Cleanning import;
Fix CHANNEL_ID bug (at least)
2020-09-11 11:33:08 +02:00
jacques
ad889b8a94 Add import 2020-09-11 11:32:06 +02:00
jacques
6dcdcd3ae7 Cleanning import;
remove not used method and variables;
add mendatory method;
2020-09-11 11:31:41 +02:00
jacques
2ef64e31e3 change schedule notification methode 2020-08-21 10:34:12 +02:00
jacques
c4175e06e3 New version of JobService implemtattion. 2020-08-15 22:04:34 +02:00
jacques
f92c861764 Small refactoring, add setAutoCancel(true) 2020-08-15 22:04:03 +02:00
jacques
a66daa3d4f Refector:
- change dbHelper.getAllDrugs to return a sorted <LIST> of medicaments;
 - remove unused import;

 Change onPause to call scheduleJob
 Add scheduleJob to use JobService
2020-08-15 22:03:19 +02:00
jacques
d39a13f453 Add RECEIVE_BOOT_COMPLETE permission 2020-08-15 21:58:49 +02:00
jacques
f74f8a6777 small fix in strings.xml 2020-08-14 15:15:23 +02:00
jacques
4e275d03d2 restore file. may be a git error from me 2020-08-14 15:13:27 +02:00
jacques
fc4e3d1f70 Fix androidIcon and androidRoundIcon; add allowBackup="true" 2020-08-14 15:12:30 +02:00
jacques
1754e9fe5b Fix small log. 2020-08-01 09:36:13 +02:00
jacques
5d9238d001 Added new asset for vector and legacy icon. 2020-07-23 19:18:26 +02:00
jacques
876181eff1 Remove the png icon in order to use the vector version 2020-07-23 09:38:45 +02:00
jacques
411a4492fc Use the vector icon 2020-07-23 09:37:58 +02:00
jacques
35a915f529 Use the vector icon 2020-07-23 09:37:27 +02:00
Jacques Foucry
7715ecc158
Add adaptive icon 2020-07-23 09:14:20 +02:00
jacques
f9a0e078b2 fix typo 2020-07-21 17:36:05 +02:00
jacques
a36febfd5e Refactor notifications. 2020-07-21 17:33:41 +02:00
jacques
2a3dab3398 Add log 2020-07-20 18:09:10 +02:00
jacques
613a38269b Fix bug recalcultate user medicament list 2020-07-20 18:08:53 +02:00
jacques
2e6a52283e Fix bug forget to save prise value. 2020-07-20 18:08:04 +02:00
jacques
4b80c35e89 Add and fix strings and translations 2020-07-19 20:08:55 +02:00
jacques
f3145bd74c Change in debug code;
Optimize import.
2020-07-19 20:04:12 +02:00
jacques
0afb8bf34e New NotificationPublisher for android >= 28;
Optimize import.
2020-07-19 20:02:53 +02:00
jacques
b2287c99d4 Minor changes in debug 2020-07-19 20:01:52 +02:00
jacques
56796a8a71 add javadoc style 2020-07-18 20:20:37 +02:00
jacques
b9b2462112 add helping behavior;
optimize import
2020-07-18 20:20:15 +02:00
jacques
053eb53459 solve addItem bug;
add try/catch to avoid bug
add javadoc style
2020-07-18 20:19:08 +02:00
jacques
8822b8d679 add safety code 2020-07-18 20:17:24 +02:00
jacques
de3d38983e Suppress unused code; 2020-07-18 20:16:38 +02:00
jacques
2cc015fd48 Suppress unused code; clean import;
Solve curso bug; initialize some varaibles
2020-07-18 20:15:48 +02:00
jacques
4cb8790047 Change scan window size for datamatrix 2020-07-18 20:14:15 +02:00
jacques
694fa6fbcd Add strings and translations 2020-07-15 08:51:29 +02:00
jacques
09342383bb fix aligment; fix bug in dialog result 2020-07-15 08:51:29 +02:00
jacques
21d8cce250 move fiexed strings into strings.xml files 2020-07-15 08:51:29 +02:00
jacques
f966e32065 fix typo and alignment; fix bug with cursor and getDrugByCIP13 2020-07-15 08:51:29 +02:00
jacques
cb73cdce70 Add allowBackup=true 2020-07-15 08:51:28 +02:00
jacques
dbed48c3da Change Text by a imageButton 2020-07-15 08:51:28 +02:00
jacques
9eb5d9f64a Remove cast 2020-07-15 08:51:28 +02:00
jacques
2e812ec29b refactor a lot of code to make it cleaner and remove debug and test code. 2020-07-15 08:51:28 +02:00
jacques
ccd20583b1 Minor changes in xml interface 2020-07-15 08:51:28 +02:00
jacques
ea576b5b78 Optimize import; cleanning test code 2020-07-15 08:51:28 +02:00
jacques
1842a55375 Add code to include new medicament in database from keyboard input. Not it the right place, must be move. 2020-07-15 08:51:28 +02:00
jacques
0ed0386707 Add isMedicament exist 2020-07-15 08:51:28 +02:00
jacques
f7e3e86482 Add string. Not translated yet 2020-07-15 08:51:27 +02:00
jacques
49b87ca48c Add call dialog for keybaord imput of a cpi13. Must be moved to the right place 2020-07-15 08:51:27 +02:00
jacques
3fa9440b11 Add resources for CIP13 input dialog 2020-07-15 08:51:27 +02:00
jacques
8bb20e9ddf Add dimen for alerts 2020-07-15 08:51:27 +02:00
jacques
425f366f83 optimize import; use new dialogInterface; remove unuse code; add log; use new way to get scanned result ; fix bug in when query medicaments.db database. 2020-07-15 08:51:26 +02:00
jacques
c71ccc35c9 optimize import 2020-07-15 08:51:26 +02:00
jacques
3475295b4d Fix typo; add log; change acces DB path method for more modern way; optimize import 2020-07-15 08:51:26 +02:00
jacques
a0058936d7 Fix typo; add log 2020-07-15 08:51:26 +02:00
jacques
d098f19f83 Optimization 2020-07-15 08:51:26 +02:00
jacques
4cb82fda61 logical start (not tested) 2020-07-15 08:51:23 +02:00
Jacques Foucry
74534cbc17 Start onActivityResult logic 2020-07-15 08:49:47 +02:00
jacques
38b317b043 remove strings 2020-07-15 08:48:09 +02:00
jacques
5b2aa081d4 Add strings 2020-07-15 08:48:09 +02:00
Jacques Foucry
8fa37f1948 Add start logical for onActivity result 2020-07-15 08:48:03 +02:00
jacques
d5e9b5d94f optimize imports 2020-07-15 08:44:53 +02:00
jacques
d94d4e8cae New translation and strings 2020-07-15 08:44:53 +02:00
jacques
2133010146 Disabled demo mode 2020-07-15 08:44:52 +02:00
jacques
3421fc4cd0 Channge floatingButtonAction by an imageButton; optimization 2020-07-15 08:44:52 +02:00
jacques
b774addbed optimization 2020-07-15 08:44:52 +02:00
jacques
44e29d3426 Change look and color text 2020-07-15 08:44:51 +02:00
jacques
ec6ae2f641 optimization 2020-07-15 08:44:51 +02:00
jacques
7d2b0badba New version of the icon 2020-07-15 08:44:51 +02:00
jacques
e60473c652 New version of the icon 2020-07-15 08:44:51 +02:00
jacques
bfd3b0de32 Fix onCancel and onKeyboard methods 2020-07-15 08:44:51 +02:00
jacques
4e9dcc0716 Change size button (not used, will be removed) 2020-07-15 08:44:51 +02:00
jacques
0adc79c169 Change cancel and keyboard button aspect 2020-07-15 08:44:51 +02:00
jacques
a91680a1b0 Change add button aspect 2020-07-15 08:44:50 +02:00
jacques
782229d8f4 Change save button aspect and class from FloattingActionButton to ImageButton 2020-07-15 08:44:50 +02:00
jacques
99955d402d Add strings and translations 2020-07-15 08:44:50 +02:00
jacques
09f6af3e75 Change and use new fab button 2020-07-15 08:44:50 +02:00
jacques
ebb40a8dde Add start of managing buttons (cancel and keyboard) 2020-07-15 08:44:49 +02:00
jacques
09ec2771d2 Remove unused file 2020-07-15 08:44:49 +02:00
jacques
d6869e49c3 Change look of fab button add 2020-07-15 08:44:49 +02:00
jacques
ec17588e9f Change cancel and keyboard Buttons 2020-07-15 08:44:48 +02:00
jacques
669e744d45 remove unused files 2020-07-15 08:44:48 +02:00
jacques
465faf9226 Add news strings 2020-07-15 08:44:48 +02:00
jacques
b8a7e1d76b Add news strings 2020-07-15 08:44:48 +02:00
jacques
be763c0ee0 Use demo scanner files 2020-07-15 08:44:47 +02:00
jacques
e5774c66c7 Use strings.xml 2020-07-15 08:44:47 +02:00
jacques
5f5f9d1039 Add scanner demo files 2020-07-15 08:44:46 +02:00
jacques
a792beb664 Add scanner demo files 2020-07-15 08:44:46 +02:00
jacques
0eadeb9158 Change to scan part 2020-07-15 08:44:46 +02:00
jacques
b21e6c58d3 Change code to adopt the journeyapps sample code which is morre readable
than the generated one by AndroidStudio
2020-07-15 08:44:46 +02:00
jacques
f795d64bd0 Add in comment the old onActivityResult method 2020-07-15 08:44:45 +02:00
jacques
70b489275a Change buttonID 2020-07-15 08:44:45 +02:00
jacques
b2aff88547 Add ScanActivity 2020-07-15 08:44:45 +02:00
jacques
1df46c80b3 Move to androidX 2020-07-15 08:44:44 +02:00
jacques
85de4c1b20 Remove inused files 2020-07-15 08:44:44 +02:00
jacques
84596529ad Add zxing wrapper 2020-07-15 08:44:44 +02:00
jacques
159654ded5 Start using new scanning process. 2020-07-15 08:44:43 +02:00
jacques
b96cf98632 Correction vibration des notifications 2020-07-15 08:44:43 +02:00
jacques
08159f6332 Create de constructMedsList in order to have a single endpoint to grab and sort the meds database 2020-05-09 15:23:36 +02:00
jacques
193508ddbb Fix bugs and remove some crappy debug code 2020-05-09 15:22:03 +02:00
Jacques Foucry
cdbaf79823 change create List behavior 2020-05-05 22:06:26 +02:00
jacques
229ec02164 Some change in look and feel;
cleanning unused ressources
2020-05-04 22:04:20 +02:00
jacques
b3e28db8a8 Some change in look and feel;
cleanning unused ressources
2020-05-04 21:51:15 +02:00
jacques
a893f7687e Some change in look and feel 2020-05-04 14:50:59 +02:00
jacques
36211fdca0 Fix test after DetailActivity 2020-05-03 22:45:50 +02:00
jacques
97e6cbf409 Remove grab new values from onStop method 2020-05-03 20:34:39 +02:00
jacques
1b99aee35b Optimize imports;
Add debug Code;
Move grabe new values in a dedicaded method.
2020-05-03 20:33:58 +02:00
jacques
911dfb5a99 Add debug code 2020-05-03 20:32:23 +02:00
jacques
6f06c4986e Small modification in interface 2020-05-03 20:31:53 +02:00
jacques
17eef9102f Merge remote-tracking branch 'origin/feature/saveDrugs' into feature/saveDrugs 2020-05-03 15:16:00 +02:00
jacques
f90438ab37 Add log facilities 2020-05-03 15:14:56 +02:00
Jacques Foucry
55c31aa160 Merge branch 'feature/saveDrugs' of ssh://git.exodus-privacy.eu.org:2225/foucry.net/PillDroid into feature/saveDrugs 2020-04-29 09:35:01 +02:00
Jacques Foucry
39c05f4b2a Commit Local 2020-04-29 09:34:55 +02:00
jacques
8e21fbe39e Add rounded corner to editView fields 2020-04-28 22:36:58 +02:00
jacques
3229050a50 Add save into database (not tested) 2020-04-28 22:36:21 +02:00
jacques
c5a8551b54 Add save into database (not tested) 2020-04-28 22:35:48 +02:00
jacques
cdde3f747f Change return type of updateDrug 2020-04-28 22:34:47 +02:00
jacques
de439ff07b Change some layout according helpers;
Change save icon for material design ones
2020-04-26 22:35:49 +02:00
jacques
4efe07c33a Change from IDE help 2020-04-26 18:27:29 +02:00
jacques
d10ea16dac Chnage status icone by the material design ones 2020-04-26 17:38:39 +02:00
jacques
73efb1fbae Change the log TAG;
Change log message.
2020-04-26 17:37:40 +02:00
jacques
55dbf37698 Add new drawable material icons 2020-04-25 17:06:38 +02:00
Jacques Foucry
f90c0df17b disabled demo mode;
Use DBHelper to updateDrug after currentStock updateed
2020-04-25 12:07:29 +02:00
Jacques Foucry
58d709152e Use DBHelper to update medicament. Change log. 2020-04-25 12:06:05 +02:00
Jacques Foucry
6e6838d2d2 Cosmetic change 2020-04-25 12:05:00 +02:00
jacques
bdbce4715f Project update to gradle 6.3;
Remove most of warnings;
2020-04-24 19:19:32 +00:00
jacques
bd97001c9e Correct type; new gradle for new version 2020-04-24 15:48:54 +02:00
Jacques Foucry
c847db66a3 Add grabbing prise, warning and alert values; display and current medicament values 2020-04-21 21:53:16 +02:00
Jacques Foucry
d134e2e037 Merge branch 'feature/saveDrugs' of ssh://git.exodus-privacy.eu.org:2225/foucry.net/PillDroid into feature/saveDrugs 2020-04-21 21:39:05 +02:00
Jacques Foucry
b285de0c16 Local commit 2020-04-21 21:35:28 +02:00
jacques
c0b32b767d Read value from the view 2020-04-12 18:39:29 +00:00
jacques
3483aa7252 Realign 2020-04-12 17:57:48 +00:00
jacques
f8bcbeb9b7 Realign 2020-04-12 17:57:10 +00:00
Jacques Foucry
ef1f3a53e4 Try add reading values from activity 2020-04-12 10:32:00 +02:00
jacques
90f8e38a20 Merge branch 'feature/saveDrugs' of ssh://git.exodus-privacy.eu.org:19100/foucry.net/PillDroid into feature/saveDrugs 2020-02-20 09:16:49 +01:00
jacques
1a7e6c063a Put Schoumi chqnges; remove dead import; clean part of code 2020-02-19 10:49:16 +01:00
Jacques Foucry
460dca9410 Change some TODO comments 2020-01-26 22:56:12 +01:00
jacques
9a1e25a356 Minor changes 2020-01-26 22:29:52 +01:00
jacques
4b193efae0 update to new gradle 2019-10-09 21:00:10 +02:00
jacques
5285f8d070 Fix about layout (do not compile, gradle process diseapears) 2019-09-18 23:03:08 +02:00
jacques
e1515086d1 Remove zxing libraries from project 2019-09-18 23:01:42 +02:00
jacques
91e8c31a70 New Android Studio version 2019-09-12 18:39:03 +02:00
Jacques Foucry
ec1dc38cc7 Change in Manifest.xml 2018-02-12 11:39:58 +01:00
Jacques Foucry
9c7945406f Remove GooglePlay references
Add some tests to avoid nullPointerException
2017-12-11 15:27:46 +01:00
Jacques Foucry
c4df2a7b00 Remove GooglePlay references 2017-12-11 15:26:21 +01:00
Jacques Foucry
26cccc7a7e Corrections mineures 2016-12-09 16:04:02 +01:00
Jacques Foucry
d3ecc6cc0b Use new icons files 2016-11-09 16:07:12 +01:00
Jacques Foucry
b8eea080e0 Added small icon for notification 2016-11-09 16:06:45 +01:00
Jacques Foucry
3732b46bb0 Change pill orientation in main icon 2016-11-09 16:06:08 +01:00
Jacques Foucry
c70f6cfeb3 Transform SVG in icons into drawable-icons for all size 2016-11-09 16:04:23 +01:00
Jacques Foucry
aac24b68b8 Code cleanning 2016-11-08 20:43:27 +01:00
Jacques Foucry
904f687b1a Use LargeIcon to solve notification missing icon issue 2016-11-08 20:43:05 +01:00
Jacques Foucry
b266cfedd1 Remove DummyContent class which came with template 2016-11-08 12:24:02 +01:00
Jacques Foucry
77f0ea6d0a Remove references to unnecessary DummyContent Class (was used for template) 2016-11-08 12:23:32 +01:00
Jacques Foucry
d2b17bf637 Remove unecessary commended code 2016-11-08 12:17:49 +01:00
Jacques Foucry
f88a7157b8 Cleanning code, remove almost warning 2016-11-08 12:10:27 +01:00
Jacques Foucry
88322fe1bc Change random generator
Add variable for random values
2016-11-08 12:09:47 +01:00
Jacques Foucry
74d861b1e4 Try to launch notification in one hour 2016-11-06 22:25:13 +01:00
Jacques Foucry
0b1da8a65e Tentative avec 1 heure de décalage 2016-11-03 13:57:19 +01:00
Jacques Foucry
3faec26a70 Add Log facility 2016-11-01 23:35:00 +01:00
Jacques Foucry
158c28a719 Cleanning code 2016-11-01 23:27:50 +01:00
Jacques Foucry
cd1ca18e32 Use NotificationPublisher 2016-11-01 23:21:49 +01:00
Jacques Foucry
24f78e0cdf Add notification text 2016-11-01 23:17:31 +01:00
Jacques Foucry
e2ca1a2390 Changement du format de l'heure 2016-10-19 19:38:13 +02:00
Jacques Foucry
b056c44661 correction appel à newstockcalculation depuis PillDroidJobService 2016-10-19 17:41:51 +02:00
Jacques Foucry
8fbc2cb427 Ajout de final pour certaines variables 2016-10-19 17:41:10 +02:00
Jacques Foucry
0e4e3ec9ff Ajout jobService 2016-10-18 16:29:07 +02:00
Jacques Foucry
42efe6f9ad Ajout méthode calcul d nouveau stock 2016-10-18 16:28:33 +02:00
Jacques Foucry
dea00e1e6c JobScheduler en place, un toast toutes les 3 secondes 2016-09-18 10:21:17 +02:00
Jacques Foucry
0996f908a8 Modification plannification toast 2016-08-31 17:57:12 +02:00
Jacques Foucry
1f94f3dd1a Supression méthode inutile 2016-08-31 17:56:46 +02:00
Jacques Foucry
957a9b09ac Corrections après merge 2016-08-30 23:54:23 +02:00
Jacques Foucry
194549b907 Merge après ajout feature notification 2016-08-30 23:26:09 +02:00
Jacques Foucry
fdaffe61ab Changement NOTIFY_INTERVAL à tomorrowAtNoon 2016-08-30 17:59:21 +02:00
Jacques Foucry
37468beb9e Ajout méthode tomorrowAtNoon en milliseconde 2016-08-30 17:58:37 +02:00
Jacques Foucry
11d54c36d2 Correction d'un bug dans la copie de la base de médicaments 2016-08-29 22:01:03 +02:00
Jacques Foucry
d707d4178d Mise en place du TimeManager 2016-08-25 17:12:47 +02:00
Jacques Foucry
edd62d4b6b Merge 2016-08-16 09:53:28 +02:00
Jacques Foucry
188a641018 Correction calcul envoie des notifications 2016-08-14 11:12:15 +02:00
Jacques Foucry
e148350ffd Correction format de la date 2016-08-14 11:11:39 +02:00
Jacques Foucry
0623600325 Problème avec les notifications qui ne semblent plus envoyées 2016-08-12 16:09:01 +02:00
Jacques Foucry
5fde8c367c Correction format de la date 2016-08-12 16:08:27 +02:00
Jacques Foucry
e2d5228a7f Nouvelle programmation des notifications 2016-08-11 17:42:09 +02:00
Jacques Foucry
f775ab3d66 Correction mineures 2016-08-11 17:41:53 +02:00
Jacques Foucry
f79ca8d00d Ajout convertion date millisecondes vers date 2016-08-11 17:41:14 +02:00
Jacques Foucry
390f620ca4 Notification programmée pour le premier médicament qui arrive en fin de stock, à la date de fin de stock (le calcul n'\''est pas correct)
Changement définition du TAG des logs
2016-08-10 21:03:28 +02:00
Jacques Foucry
df01e9b8b7 Ajout méthode pour avoir le nom de l'application (sans doute à déplacer dans une class utils
Changement du titre de la notification (avec le nom de l'application)
2016-08-09 23:31:57 +02:00
Jacques Foucry
d020ee1bcf Modification notification pour le lendemain midi 2016-08-08 23:04:07 +02:00
Jacques Foucry
457728ce19 Ajout de truc par Google 2016-08-08 23:03:40 +02:00
Jacques Foucry
6b2ab5fdeb Changement d'icone 2016-08-08 23:02:51 +02:00