Two teens are behind bars in connection with an armed robbery that happened last month on the Silver Comet Trail.

Cobb County Police said they arrested 18-year-old Tyrone Vincent and a juvenile - both were charged in the case.

A 52-year-old man told police he was robbed at gunpoint while riding his bike on Jan. 18. He saw two men placing tree branches a long the bike path, according to the Cobb County Police report. 

He stopped and asked the men if they put the sticks there and they told him no. He bent down to move the sticks and when he looked up, both men were pointing guns at him, according to the report.  

RELATED: Police: Man robbed at gunpoint while riding bike on Silver Comet Trail

The robbers took his phone and ran off. The man was able to track the exact location of the robbery using a fitness tracker app on his phone. He said it happened near Anderson Mill Rd., east of Powder Springs and west of Floyd Road in Austell. The two suspects turned off the tracker after the robbery, according to the report.

Authorities said they initially arrested the two suspects for a separate crime, but during the course of interviews, one of them started talking about the Silver Comet Trail incident.