My partner is one of those people who updates Facebook at the most inappropriate times and has no qualms about texting 10 seconds after sex. This is more of a general behavioral issue than a "don't text this specific person" issue.
So when it gets out of hand while we're supposed to be spending time together, I mention that it bothers me. If he chooses not to stop, I find other things to do. I can't control what he does, but I can control what I put up with.