The use of smartphones in a road context by drivers and Vulnerable Road Users (VRU) is rapidly increasing. To reduce the risks related to the influence of smartphone usage in a situation where traffic needs to be considered, a collision prediction algorithm is proposed based on Pedestrian to Vehicle (P2V) and Vehicle to Pedestrian (V2P) communication technologies, which increases the visual situational awareness of VRU regarding the nearby location of both autonomous and manually-controlled vehicles in a user-friendly form. The proposed application broadcasts the device's position to the vehicles nearby, and reciprocally, the vehicles nearby broadcast their position to the device in use, supporting pedestrians and other VRU to minimize potential dangers and increase the acceptance of autonomous vehicles on our roads. Results regarding the evaluation of the proposed approach showed a good performance and high detection rate, as well as a high user satisfaction derived from the interaction with the system.