In this repository you can find an example of V2X application that shows how to use the V2X-SDK in a ready to use Android Application.
The HelloV2XWorld application demonstrates how easy it is to create a V2X application and exchange V2X messages with other road users . This application is powered by the V2X-SDK and the STEP platform developed by Vodafone. By cloning this project, you will be able to create and execute your first V2X application in less than 15 minutes. The HelloV2XWorld application shows a map with all the road users close to your location. You can also use this application as a model to start developing your own application.
- Android Studio (2022.1.1 or upper) is already installed on your laptop.
- A software able to open rar & zip archives is already installed on your laptop.
- You have some experience in Android application development in Java using Android Studio.
- You already created One virtual device in Android Studio (Android 8 or higher).
- Your Internet connectivity is up and running.
- You are available for 15 minutes.
-
Register yourself on the STEP Web portal
-
Go to the STEP Web portal webpage and login.
=>Enter your credentials
=>Enter your pin Code
-
Navigate to the page "Documentation" and select the "SDK documentation for Android" option.
-
In the "SDK documentation for Android" page , click on the "Download SDK" button.
=> Your browser downloads the archive "VodafoneV2X_Android_SDK.rar" -
Open the archive, extract the V2X-SDK library file called "v2xsdk-release.aar" and save it on your laptop.
- In the "SDK documentation for Android" page , click on the "Download documentation" button.
=> Your browser downloads the archive "Android_V2X_SDK_Documentation_Vabc.zip" - Open the archive and save on your laptop the Javadoc and the user Guide
Retrieve the Application_ID & Application_Token, you will need these 2 parameters later to configure the HelloV2XWorld app.
- Go the Test application Test Application Web page.
- Click on the Test Application button
- Click on the Next Button two times
- Select the Application ID option and Copy the ApplicationID and save it as ApplicationID
- Select the SDK Key option , copy the SDK Key and save it as ApplicationToken
-
Open Android Studio.
-
Select "File" then "New" then "Project from Version Control".
=> A window called "Get from Version Control" appears. -
In the field version Control select the option "Git".
-
In the field URL set "https://github.com/Vodafone/HelloV2XWorld-Android.git".
-
Wait until the completion of this operation.
Please, be aware that the HelloV2XWorld application needs to access to your location , it's why it requests the Location Permission.
-
Read the Term and Conditions, Scroll down and click on the "Accept" button.
-
Provide the Location Permission to the HelloV2XWorld application
-
The blue icon represents yourself
-
When clicking on the blue icon, app displays you ITS information: StationID, StationType, Speed, Heading
-
When clicking on any red icon, app displays you the CAM information: StationID, StationType, Speed, Heading
-
You can change your station type by accessing the setting page
- 1.0.4.0
- Initial Release
This project is licensed under the MIT License - see the LICENSE.md file for details
- org.osmdroid:osmdroid-android:6.1.14 / Apache Software License Version 2.0
- com.google.code.gson:gson:2.10.1 / Apache 2.0
- group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' / Apache 2.0
- group: 'org.eclipse.paho', name: 'org.eclipse.paho.client.mqttv3', version: '1.2.5' / Eclipse Public License version 2.0
- com.hivemq:hivemq-mqtt-client:1.3.0 / Apache 2.0
- com.github.barteksc:android-pdf-viewer:3.2.0-beta.1 / Apache 2.0
- com.jakewharton:process-phoenix:2.1.2 / Apache 2.0
- pub.devrel:easypermissions:3.0.0 / Apache 2.0
- androidx.appcompat:appcompat:1.6.1 / Apache 2.0
- com.google.android.material:material:1.8.0 / Apache 2.0
- androidx.constraintlayout:constraintlayout:2.1.4 / Apache 2.0
- com.jakewharton.timber:timber:5.0.1 / Apache 2.0
- junit:junit:4.13.2 / Eclipse Public License 1.0
- androidx.test.ext:junit:1.1.5 / Apache 2.0
- androidx.test.espresso:espresso-core:3.5.1 / Apache 2.0