Digital License mv
Just imagine what happens if you are pulled over by a Traffic sergeant, and you did not have your driver’s license with you. Without it, you cannot drive a vehicle on public roadways so it is possible for cop to fine you. Therefore, it is important for you to carry your Driver’s License everywhere. On the other side, it is hectic job for a Cop to verify if the Driver’s license is original, is it valid, or is the driver has punishments pending. To overcome all this issues Digital License mv app is used to access digitally stored license details of all users in MySQL database, which is retrieved as JSON objects through PHP scripts.
For decades, driver’s license is being existing; the reason it is being playing an essential role is because mandatory rule for the drivers to have a Driving license with him or her whenever and wherever he or she travels else they can be fined or can also be charged for it. Therefore, it is important for a driver to carry the license every time. However, what if the driver has lost, stolen, or damaged his license? On the other hand, if he has forgot to carry his license from home or workplace. On the other side, the details of each and every person’s driving license is stored in database that is accessible only by the cop or traffic police who catches a driver when they (the driver) bar the traffic rules. Therefore, it is necessary for a cop to have a quick access to the database where any punishment can able to add on him or her and can have a view on his previous or pending punishments. This is a vague process to access the database through a website and there is possibility that the cop cannot check the originality of a license or the validity of the license quickly. Nowadays Android app has become common and very essential in our daily life and every person carries a phone with him so having this in mind, Digital license is a mobile app that can provided to every cop through the government, as it used only by a cop to ensure privacy of sensible data.
Now, the above architecture diagram explains how the app designed. As shown, Login screen comes as the first activity to authenticate cop. In the login screen, the cop gives the necessary credentials to the app. These data are passed via network to the server in order to validate the login request. When the cop is authorised to access the app, main screen appears. The driver details can be fetched using two ways –DL Number (Driving License) which is unique for each license holder or pre-registered Mobile Number. The App sends request to the PHP backend service that processes query about a particular user and returns the required data in a JSON string and object format, which can be received and parsed using JSON parses class, which extracts data from the received JSON object. This app implements volley library to achieve parsing and request response of JSON objects. Android volley is a networking library was introduced to make networking calls much easier, faster without writing tons of code. By default, all the volley network calls work asynchronously, so we don’t have to worry about using async task anymore. After a quick check of credentials either DL no or the Mobile number the app processes the data based on query. If the SQL query is to retrieve the user details and DL details it go to a specifically written PHP, which connects to the backend. The punishment activity that shows list of punishments, which can be maximum of three after which the license holder is disqualified to use it. A secure mechanism that the cop only can access and stores with the credentials of the cop for future references do the adding of punishments. The management of all these data is done by a web site that allows a license holder to upload details and photo to register for the E-License credentials. The cop web page allows the cop to get credentials to use the app . All these registration is done through a secure HTTPS channel so that there is no data insecurity and controlling sensitivity of the data. When the registration is done, it communicates with a PHP file that connects to the database and adds data. The data going to database is not committed unless all data is valid else it is rollback to previous stable version of the database.