You should know by now that Joshua, Hosea and Jesus are different variations of the same name.  While Joshua 5:13-15 shows that Jesus, Himself, was very involved in the battle against Jericho, the verse in Acts is still specifically talking about the man Joshua.  Who tried to buy the Holy Spirit from Peter?