Smartphones are great for communication. Better than anything we've had before. But past a point, they are distracting. Just use smartphones for communication and have the self control to avoid the pitfalls.
Just disable most of (or all?) notifications and don't use social networks. Observe yourself checking the phone compulsively, and disable distractions that cause this behavior.