scoute-dich / quitsmoking Goto Github PK
View Code? Open in Web Editor NEWAndroid app to help smokers to quit smoking. Three fragments organized with tabs: overview, health and diary.
License: Other
Android app to help smokers to quit smoking. Three fragments organized with tabs: overview, health and diary.
License: Other
In ba68ed5 com.android.support* dependencies were removed:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'commons-io:commons-io:1.3.2'
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:support-v13:27.0.2'
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
which results in errors like the ones below
/home/mesnevi/qsmoke/src/main/java/de/baumann/quitsmoking/helper/helper_main.java:31: error: package android.support.design.widget does not exist
import android.support.design.widget.Snackbar;
^
/home/mesnevi/qsmoke/src/main/java/de/baumann/quitsmoking/helper/helper_main.java:32: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
/home/mesnevi/qsmoke/src/main/java/de/baumann/quitsmoking/helper/Activity_EditNote.java:11: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/home/mesnevi/qsmoke/src/main/java/de/baumann/quitsmoking/helper/Activity_EditNote.java:12: error: package android.support.design.widget does not exist
import android.support.design.widget.Snackbar;
^
/home/mesnevi/qsmoke/src/main/java/de/baumann/quitsmoking/helper/Activity_EditNote.java:13: error: package android.support.v7.app does not exist
Android Gradle plugin 3.6 introduced a new packaging tool zipflinger for building the debug versions of the app. To avoid errors like "Entry "*.xml' collided" while packageDebug, official documentation suggests to switch back the old packaging tool by including in gradle.properties android.useNewApkCreator=false
. This, however, results in
installDebug error: Failed to parse APK file android.content.pm.PackageParser$PackageParserException: Failed to parse /data/local/tmp/quitsmoking-debug.apk
Excluding resources xml files while packaging is out of question.
Expected:
The app adds an image to the already added goal.
Actual:
The app crashes.
Reproduce:
Version: 2.5 via F-Droid
Device: Motog 5+ Potter
OS: ArrowOS v9.0
Since all the strings are added manually and then are translated from time to time and added to different locales manually, too, their content differs. This results in errors:
> Task :processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/home/mesnevi/qsmoke/src/main/res/layout/fragment_health.xml:434: AAPT: error: resource string/health_header10 (aka de.baumann.quitsmoking:string/health_header10) not found.
/home/mesnevi/qsmoke/src/main/res/layout/fragment_health.xml:575: AAPT: error: resource string/health_header13 (aka de.baumann.quitsmoking:string/health_header13) not found.
This caused by missing string in src/main/res/values/strings.xml:
<string name="health_header10">Heart attack</string>
I just wanted to know if I can use the source code for my project and redistribute it (after modification) mentioning the source in About page.
Hi,
I've filled out the date and time I smoked my last cigarette, but instead of some statistics, the Overview screen shows me a lot of "Configure in settings".
I use international date format, if that matters.
I had to enter 2300 as the time, because the numerical keyboard that popped up to enter the time doesn't have a :Since I don't get any error messages, I assume what I entered is correct.
Let me know if you want some screenshots, a logcat or other further info.
Thanks!
Something like "Copyright © 2016-2020 by Gaukler Faun".
Sir I am university student and i also want to make such app for youths .
So could you please tell how should I proceed
Hello!
I don't know if it is the app or the french translation, but for the health goals reached after one day at least, the count down of the first day (24h) doesn't happen.
For example, the 3rd health item, infarctus, after 5 minutes of not smoking, shows: "reached in 1 day 23h 55 minutes", although its description says (1 day) so it is supposed to be reached in 24h 55 minutes after 5 minutes not smoking.
One could argue that we should just forget that 1 day inacuracy but psychologically it is quite demoralizing to see this once you reached the 2 first health goals!
Really thank you for the app!
Been using it for a week, i didn't stop smoking yet but now i look at the app when i want to smoke and it makes me last a few hours more before the next cigarette. Really hope i'll get to stop!
At the moment there are only Euro (EU), US dollar (USD), GB pound (GBP), and Japanese Yen. I suggest adding at least Chinese yuan (CNY) and Russian rouble (RUR), these are pretty popular currency types.
Probably it's worth adding other currencies, at least the ones for translation added.
When diary / note files are saved on the application, the application should continue to run.
The application closes forcefully on its own when the diary / notes are saved.
Hi, where did you get the information about health and their targets?
Hello,
most of the time I open my dashboard there are wrong numbers. E.g. after nearly one week (6 days and some hours, the "health" tab still displays 1 day and some hours for the 1 week achievement, which would result in 8 days but it does not make sense cuz a week has 7 days). So sometimes all achievement have exactly +1 day. Sometimes its correctly displayed but some other times when I open the app all achievements display +1 day. But everytime when an achievement is about to be fulfilled it is on the right time, just the countdown sometimes does not work. Probably there some error in the code.
Reseting last smoked time is hard. It'd be nice to have a reset button that resets the last smoked time, and shows a stats page on how you did compared to previous smoking brakes.
The app shows saved time in Hours but in the settings tab it asked for minutes! For all cigarettes or just time for one?!
Nice app)
PS: Is it possible to show some tips to quit or something?
Hi,
The price of cigarettes will increase in France next year. To get a better idea of the money I saved it would be great to have several fields for prices which are linked to a period of time.
Example:
Number of cigarettes per day: 10
Number of days per year: 365
Thank you.
Hello.
I just update to 2.1 from fdroid.
And after start my data are reset to 1970 years.
Any way to retrieve old files ?
Hi, I've been using this app for a few days. It is pretty amazing and well done and I also think that localization can help it to grow. I am Italian, so I can translate in that language, but I am not a developer; could anyone tell me where to find the wordsheet? Thanks.
Some blocs in src/main/res/values-ja/strings.xml are not translated to Japanese, they are present there in English:
toast_*
action_filter_*
filter_*
sort_*
about_*
I have no idea how to do this the right way, but there are some English tweaks to be made in the "Health" section
Hey,
this is my first "contribution" to Github. If I do something wrong, please excuse.
Unfortunately the app does not update when it is opened from the background apps. I have to close is completely and open it again, that it updates the statistics (saved money, saved time, saved cigarettes).
I use Lineage OS on an OnePlus Two.
I noticed on the Google Play store that a quit smoking application with your same application ID, namely de.baumann.quitsmoking, is posted under the author Jolly Crab Studios.
https://play.google.com/store/apps/details?id=de.baumann.quitsmoking
I suspect that you did not authorize this developer to publish your work under their name, especially in violation of the GPLv3 as no link to the source code is provided. This developer did the same with another of my applications.
If you are interested, you may choose to ask Google to take down this application, if that is your wish.
https://support.google.com/legal/contact/lr_dmca?product=googleplay
FYI.
Hi,
Could you convert the time to smoke a cigarette in minutes instead of hours?
Thank you.
BTW a notification when we reach a new goal would be a great motivation :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.