Vodafone / HelloV2XWorld-Android

This application allows developers to quickly learn how to use our V2X SDK. By cloning this simple application, you can see how easy it is to use our SDK to create a V2X mobile application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HelloV2XWorld-Android

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.

Description

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.

Getting Started

Prerequisites

  • 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.

Download the V2X-SDK library for Android

  • Register yourself on the STEP Web portal
    STEPWP_Signup_Annoted

  • Go to the STEP Web portal webpage and login.
    =>Enter your credentials
    STEPWP_Login1_Annoted
    =>Enter your pin Code
    STEPWP_Login2_annoted

  • Navigate to the page "Documentation" and select the "SDK documentation for Android" option.
    image

  • In the "SDK documentation for Android" page , click on the "Download SDK" button.
    image
    => 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.

Download the Android V2X-SDK documentation

  • In the "SDK documentation for Android" page , click on the "Download documentation" button.
    image => 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

TestApplicationButton

  • Click on the Next Button two times
  • Select the Application ID option and Copy the ApplicationID and save it as ApplicationID

TestAppID

  • Select the SDK Key option , copy the SDK Key and save it as ApplicationToken

TestAppToken

Clone the HelloV2XWorld Application

  • Open Android Studio.

  • Select "File" then "New" then "Project from Version Control".
    image
    => 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".

  • Click on the "Clone" button.
    image

  • Wait until the completion of this operation.

Import the V2X-SDK library in your project

  • Copy the "v2xsdk-release.aar" file to the app/libs folder of your project.
    image

Set the Application_ID & Application_Token in your project

AStudio

Build the HelloV2XWorld application

  • Click on "Build" then "Make Project" (or use the shortcut "Ctrl+F9").
    image

Run the HelloV2XWorld application on the virtual Android device

Please, be aware that the HelloV2XWorld application needs to access to your location , it's why it requests the Location Permission.

  • Select your virtual Device in Android Studio.
    image

  • Press the RUN button.
    image

  • Wait until the "Emulator - HelloV2XWorld" windows appears.
    image

  • Read the Term and Conditions, Scroll down and click on the "Accept" button.
    image

  • Provide the Location Permission to the HelloV2XWorld application
    image

  • A map is displayed centered on your current location
    image

  • The blue icon represents yourself

  • The red icons represent the other road users close to you
    image

  • When clicking on the blue icon, app displays you ITS information: StationID, StationType, Speed, Heading
    image

  • When clicking on any red icon, app displays you the CAM information: StationID, StationType, Speed, Heading
    image

  • You can change your station type by accessing the setting page App Parameters2

Version History

  • 1.0.4.0
    • Initial Release

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Dependencies

  • 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

About

This application allows developers to quickly learn how to use our V2X SDK. By cloning this simple application, you can see how easy it is to use our SDK to create a V2X mobile application.

License:MIT License


Languages

Language:Java 100.0%