Depends what you are trying to do.
If it’s habit breaking, stopping smoking for example you may substitute something like a patch to help you break the habit. So you break the reliance on the product then the habit of needing to smoke on a tea break etc
If it is habit forming it can be harder. Let’s say you want to do a daily bible study, you could start by choosing an app that has an alarm to remind you at a certain time. This way you start and you do it often enough you don’t need the reminder any more, then you can’t imagine not doing it
Latest Answers