You need to state what state, as various states have slightly different rules.
As a second issue, proving that person A, was same person A texting on phone, is usually a separate issue that a defense atty can have fun with.