From Bulbapedia, the community-driven Pokémon encyclopedia.
Joshua (Japanese: トシキ Toshiki) is a Pokémon Coordinator who appeared in the anime. He appeared in Mean With Envy and Pacifidlog Jam.
Joshua was training for the Pacifidlog Town Pokémon Contest with his girlfriend, Erica. Erica had been training with Joshua ever since they were little because her dream was for her and Joshua to be the first couple to win a Pokémon Contest together. However, Joshua felt that Erica was focusing too hard on the upcoming Contest and would try to get away from her as often as he could.
When May arrived in town for the Contest, Joshua met her when Skitty ran off and was found playing with him. Erica, in a fit of jealousy, believed May was trying to steal Joshua away from her when she saw the two Coordinators chatting animatedly on a bench. This jealousy continued to remain prominent when May and Joshua drove off Team Rocket together and even when they did something insignificant, such as complimenting each other's Pokémon.
During the Contest, May faced Joshua in the second round. Although Erica very badly wanted Joshua to defeat May, he ended up losing. Erica was angry at May for crushing her hopes of winning the Contest as a couple, but then Joshua approached her and told her that he and May were not romantically seeing each other, but instead that Joshua just wanted some time away from Erica.
Before the final round, Erica apologized to May, saying that she had no reason to be jealous after seeing her battle with Joshua. May accepted the apology, and as the young Coordinator headed off to the Grand Festival with her fifth ribbon, Erica and Joshua promised to cheer for her.
Both Erica and Joshua had a small cameo during the Hoenn Grand Festival watching it on TV.