SlideShare une entreprise Scribd logo
1  sur  33
Télécharger pour lire hors ligne
Page | 1
Contents
Sl. No Description Page No
1. Chapter 1
1. Introduction
1.1. System Analysis
3-7
2. Chapter 2
2. Previous Work
8-9
3. Chapter 3
3. Present Work
3.1. System Specification
3.2. System Structure
3.3. System Design
3.4. System Implementation
3.5. Process Workflow
10-25
4. Chapter 4
4. Result Analysis
4.1. App test and result
4.2. Error analysis
26-30
5. Chapter 5
5. Conclusion
31
6. Chapter 6
6. Future Scope
32
7. Chapter 7
7. References
33
Page | 2
Abstract
There's nothing worse, especially at the end of a long work day or when you're on the way to a
well-deserved long weekend at the beach or cottage. There might be alternate routes you could
take that would reduce the amount of time you spend in traffic, but how will you know unless
you have traffic apps?
Our project “Safe Journey” is an Android App that focuses on the real-time traffic reporting
to the user. It will also allow user to update individual status in an open forum. The News
Feed will be updated according to the user’s location. The Google map is embedded with the
system to track the current location of the user. There are also some modules like traffic
updates, and alternative driving routes.
Page | 3
Chapter 1
1. Introduction
In past five years, social networking applications had gained a lot of support and popularity all
over the world.‖The world is a global village ―; this terminology has proven true in this aspect.
So taking this thought into consideration, we have developed an application which would be a
different view point in social networking world.
Traffic reporting is the near real-time distribution of information about road conditions such as
traffic congestion, detours, and traffic collisions. This report will help drivers anticipate and
avoid traffic problems. Traffic reports, especially in cities, may also report on major delays to
mass transit that involves roads. In spite of that for emergency services like Ambulance, Fire
brigade, police, Rescue operation team the real time traffic report update system is highly
recommended. For rapid and periodic broadcast reports, traffic information should be transmitted
to GPS units, smart phones, and personal computers, Tab etc.
With the improvement of the condition of the wireless network, mobile devices and so on, the
applications of the traffic information have become more and more popular from search of the
mobile data to dealing with mobile professional work. Through analyzing the system
architecture, the research realized the functions of the location and searching real-time traffic
information by making use of the Google Map data, and by using the Google Weather API and
the internet weather XML, it realized the functions of the searching real-time weather
information and weather forecast.
Page | 4
1.1. System Analysis
1.1.1. System Objectives:
Communication over a network is one field where this tool finds wide ranging application.
Traffic update application establishes a connection between 2 or more systems connected over an
intranet or ad-hoc. This tool can be used for large scale communication and conferencing in an
organization or campus of vast size, thus increasing the standard of co-operation. In addition it
will also perform current location tracking of the device or user. This software can have further
potentials, such as client and admin interaction through server, efficient GPS system that will
also provide route guidance.
1.1.2. Developing System: Android
Android is a mobile operating system developed by Google, based on the Linux kernel and
designed primarily for touch screen mobile devices such
as smart phones and tablets. Android, Inc. was founded in
Palo Alto, California in October 2003 by Andy Rubin (co-
founder of Danger),Rich Miner (co-founder of Wildfire
Communications, Inc.),Nick Sears (once VP at T-Mobile)
and Chris White (headed design and interface development
at WebTV) to develop, in Rubin's words, "smarter mobile
devices that are more aware of its owner's location and
preferences". The early intentions of the company were to
develop an advanced operating system for digital cameras.
Though, when it was realized that the market for the
devices was not large enough, the company diverted its
efforts toward producing a smart phone operating system
that would rival Symbian and Microsoft Windows Mobile.
Android's user interface is mainly based on direct manipulation, using touch gestures that loosely
correspond to real-world actions, such as swiping, tapping and pinching, to manipulate on-screen
objects, along with a virtual keyboard for text input. Android has the largest installed base of all
operating systems (OS) of any kind. Android has been the best selling OS on tablets since 2013,
and on smart phones it is dominant by any metric.
Page | 5
1.1.2.1. Interface:
Android's default user interface is mainly based on direct manipulation, using touch inputs that
loosely correspond to real-world actions, like swiping, tapping, pinching, and reverse pinching to
manipulate on-screen objects, along with a virtual keyboard. Game controllers and full-size
physical keyboards are supported via Bluetooth or USB. The response to user input is designed
to be immediate and provides a fluid touch interface, often using the vibration capabilities of the
device to provide rapid feedback to the user. Internal hardware of Android devices boot to the
home screen, the primary navigation and information "hub" on Android devices that is analogous
to the desktop found on personal computers. A home screen may be made up of several pages,
between which the user can swipe back and forth, though Android's home screen interface is
heavily customizable, allowing users to adjust the look and feel of the devices to their tastes.
Third-party apps available on Google Play and other app stores can extensively re-theme the
home screen.
Android provides the ability to run applications that change the default launcher, and hence the
appearance and externally visible behaviour of Android. These appearance changes include a
multi-page dock or no dock, and many more changes to fundamental features of the user
interface.
1.1.2.2. Applications
Applications ("apps") extend the functionality of devices. Android Apps are written using
the Android software development kit (SDK) and, often, the Java programming language that
has complete access to the Android APIs. The SDK includes a comprehensive set of
development tools, including a debugger, software libraries, a handset emulator based
on QEMU, documentation, sample code, and tutorials. Initially, Google's supported integrated
development environment (IDE) was Eclipse using the Android Development Tools (ADT)
plugin; in December 2014, Google released Android Studio, based on IntelliJ IDEA, as its
primary IDE for Android application development. . In January 2014, Google unveiled a
framework based on Apache Cordova for porting Chrome HTML 5 web applications to Android,
wrapped in a native application shell.
Android has a growing selection of third-party applications, which can be acquired by users by
downloading and installing the application's APK (Android application package) that allows
users to install, update, and remove applications from their devices. Google Play Store is the
primary application store installed on Android devices that comply with Google's compatibility
Page | 6
requirements and license the Google Mobile Services software.
1.1.2.3. Memory management
Since Android devices are usually battery-powered, Android is designed to manage processes to
keep power consumption to a minimum. When an application is not in use the system suspends
its operation so that, while available for immediate use rather than closed, it does not use battery
power or CPU resources.
Android manages the applications stored in memory automatically. When memory is low, the
system will begin invisibly and automatically closing inactive processes, starting with those that
have been inactive for longest.
1.1.2.4. Security and privacy
 Scope of surveillance by public institutions
As part of the broader 2013 mass surveillance disclosures it was revealed in September 2013 that
the American and British intelligence agencies, the National Security Agency(NSA)
and Government Communications Headquarters (GCHQ). They are reportedly able to read
almost all smartphone information, including SMS, location, emails, and notes. In January 2014,
further reports revealed the intelligence agencies' capabilities to intercept the personal
information transmitted across the Internet by social networks and other popular applications
such as Angry Birds, which collect personal information of their users for advertising and other
commercial reasons.
 Common security threats
Research from security companies list premium service abuse as the most common type of
Android malware, where text messages are sent from infected phones to premium-rate telephone
numbers. Security threats on Android are reportedly growing exponentially; however, Google
engineers have argued that the malware and virus threat on Android is being exaggerated by
security companies for commercial reasons and have accused the security industry of playing on
fears to sell virus protection software to users.
 Technical security features
Android applications run in a sandbox, an isolated area of the system that does not have access to
the rest of the system's resources, unless access permissions are explicitly granted by the user
when the application is installed. Before installing an application, Play Store displays all required
permissions: a game may need to enable vibration or save data to an SD card. After reviewing
these permissions, the user can choose to accept or refuse them, installing the application only if
they accept.
In Android 6.0 Marshmallow, the permissions system was changed to allow the user to control
an application's permissions individually, to block applications if desired from having access to
the device's contacts, calendar, phone, sensors, SMS, location, microphone and camera. Full
permission control is only possible with root access to the device.
Page | 7
1.1.2.5. Virtual reality
At Google I/O on May 2016, Google announced Daydream, a virtual reality platform that relies
on a smart phone and provides VR capabilities through a virtual reality headset and controller
designed by Google itself. The platform is built into Android starting with Android Nougat,
differentiating from standalone support for VR capabilities. The software is available for
developers, and was released in 2016.
1.1.2.6. Platform usage
Charts in this section provide breakdowns of Android versions, based on devices accessing
the Google Play Store in a seven-day period ending on November 7, 2016. Therefore, these
statistics exclude devices running various Android forks that do not access the Google Play
Store.
Since May 2016, more than half of devices have OpenGL ES 3.0 or higher.
Page | 8
Chapter 2
2. Previous Work
WAZE
Waze has an interesting concept which actually works better the more users are gathered. The
app basically allows you to be a Good Samaritan and tell others about the traffic condition. The
app boasts a live routing based on community generated alerts. For example if you see a traffic
jam ahead, you update the app so that the newcomers will get warned. This is a give and take
relationship and it works quite well.
Features:
 Community generated alerts and warnings.
 Great voice guided navigation.
 Automatically learns your frequent
destinations.
 Finds the cheapest gas station ion your route
UDOT Traffic:
UDOT Traffic is an amazing traffic app for Android but it is only available for residents of Utah.
The traffic app provides mobile access information for Utah roadways directly from the Utah
Department of Transportation. The map can be zoomed and scrolled around with easy and shows
exactly what is happening on the road of the state. Current traffic condition on the freeways and
main surface streets is also presented in style. This traffic app for Android is last because it is
available only for one state.
Features:
 Travel Wise alerts are great.
 A list of construction activities, hazards and
accidents is given.
 Road weather forecasts are available.
Page | 9
NZ Traffic:
If you happen to live in New Zealand, then this traffic app for Android is the best one for you.
From traffic webcam views to congestion info the app provides it all to the New Zealanders. The
app allows you to view live traffic cameras from around the country which include big cities like
Auckland, Christchurch, Wellington and Hamilton. A handy map is also displayed for easy
selection of cameras. This of course means that you can view the traffic first hand without being
stuck on the road.
Features:
 The map saves a lot of time.
 Big cities are covered well.
 The app can be moved to SD card.
Notable Feature:
Congestion information regarding each camera is given if it is available.
Michelin Navigation:
Michelin Navigation is a free traffic app for android which aids in your day-to-day travels. The
app has real-time traffic information which means you will know when the bridge is being
choked by the morning traffic. The app also tells you when a particular route is closed and
thankfully offers alternatives. The schematic and uncluttered presentation makes this app a truly
desirable one. So why is the app not ranking a bit better in the 10 best traffic app for android list?
The only reason for that is the unavailability of the
app in the United States of America.
Features:
 Visual warnings for excessive speed.
 Speed limits are continuously displayed on-
screen.
 Simple directions which are easy to follow.
Notable Feature:
The app actually calculates the traffic on any road and tells you how much time it will take to
reach your destination. This means that the app intelligently adds more time to the normal
duration of travel according to the traffic load.
Page | 10
Chapter 3
3. Present Work
3.1. System Specification:
3.1.1. Hardware requirements
In hardware requirement we require all those components which will provide us the platform for
the development of the project. The minimum hardware required for the development of this
project is as follows—
 RAM - 4 GB or more
 System Type – 64 bit Operating System
 Hard disk space - 2 GB (500 MB for IDE + 1.5 GB for Android SDK )
 Processor- Intel Pentium 4 or AMD Athlon 2 GHz (or faster)
 Monitor Screen Resolution - 1280 x 800
These all are the minimum hardware requirement required for our project. We want to make our
project to be used in any type of computer therefore we have taken minimum configuration to a
large extent. 4GB RAM is used so that we can execute our project in a least possible RAM. 5 GB
hard disk is used because project takes less space to be executed or stored. Other enhancements
are done according to the needs.
Page | 11
3.1.2 Software requirements
Software’s can be defined as programs which run on our computer. It acts as petrol in the
vehicle. It provides the relationship between the human and a computer. It is very important to
run software to function the computer. The software requirements for developing this project are
as follows—
 Android Studio – version 2.1.2 (64 bit OS)
 Android SDK tools –version 25.0.0
 Android SDK platform- API 24 (Android 7 –Nougat)
 Java SE JDK -version 8
 Operating system-Windows 7, Windows 8,windows
 Virtual Environment- VMware player
 Virtual Emulator – Nexus API 24
We use Android Studio 2.2.2 for acquire lat0est facilities and features. The SDK platform we
choose is SDK 25.2.2 which is more suitable version for Android Studio 2.2.2. The virtual
Emulator we use for execution of the program is Nexus S API 24.In case of real time testingour
App we use Android Phone with android version 6. Other software are also installed and updated
according to the need of our project operation during development period.
Page | 12
3.2 System Structure:
The structure of an Android application is fairly rigidly defined. In order for things to work
properly, you need to put keep certain files in the right places. At the end of this chapter, we also
discuss how basic app and screen navigation works on Android devices.
3.2.1 Project Structure:
Safe Journey
Safe journey [2016] is an android application based on real time traffic update system. The app
basically allows you to be a Good Samaritan and tell others about the traffic condition. The app
informs you of any seasonal road closure, road accident, construction, traffic congestion and
special events which impact the traffic flow. If there is a big football game going on, the app will
tell you when the traffic load will be high. The app users also can update their status in the open
forum. For example if you see a traffic jam ahead, you update the traffic condition to the app so
that the newcomers will get warned. This is a give and take relationship and it works quite well.
This concept will work better if the more users are gathered .There will be another type of user,
called admin, a group of administrative people who will confirm the users’ update. They will
check the authentication of the status and approve the users’ update in the newsfeed. They can
also update authentic traffic news in the common forum. However, The application is very useful
for emergency services like Ambulance, Fire Brigade, Rescue Team services, Police for prompt
action as well as common people to avoid the daily road traffic jam.
There is a picture attached below of the product-
Page | 13
Features
 Real time traffic update
 User gets a open forum to share their update and discuss
 The update status can be authenticated by Admin to avoid any fake update
 Map Navigation ,track users’ current location
 User can have real-time help if any unwanted situation occurs through the help-line
number.
3.2.2. Project Components
API Design
Google Map
With the Google Maps Android API, the Google Map is attached with our application. It can find
the current location of the user using GPS. The API automatically handles access to Google
Maps servers, data downloading, map display, and response to map gestures. We use API calls to
add markers, polygons, and overlays to a basic map, and to change the user's view of a particular
map area. These objects provide additional information for map locations, and allow user
interaction with the map. The API allows user to add these graphics to a map:
 Icons anchored to specific positions on the map (Markers).
 Sets of line segments (Poly lines).
 Enclosed segments (Polygons).
 Bitmap graphics anchored to specific positions on the map (Ground Overlays).
 Sets of images which are displayed on top of the base map tiles (Tile Overlays).
The Google map is attached with the Android App using a unique API key value. To generate
the key value, we need to register our project to the Google API Console. There one unique API
key value for Google Maps is generated exclusively for the registered project. Using this
particular API key value in the manifest file Google Map is accessed in our Android App.
Google Map API Permissions:
AndroidManifest.xml
Page | 14
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission
android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
API key attachment:
strings.xml
<resources>
…
<string name="google_maps_key">AIzaSyAJaEiKVReYcWXe87wGZdsY2b4-xiQLR3I</string>
</resources>
API Key Generation:
Page | 15
Firebase
Firebase is a mobile and web application platform with tools and infrastructure designed to help
developers build high-quality apps. Firebase provides features like Cloud Messaging, Database,
Storage etc. We use firebase Cloud messaging platform and Firebase database in our application
to maintain the news feed server.
Here also we need to register our project or can use existing project to use the firebase database.
We first design the Real time database in firebase console. Then the API key value for firebase is
added in the source code.
Firebase real time database design:
 Firebase database is a tree like data structure. Here the data root is first created in the
firebase console. Next onwards the real time data is stored in this data base.
 Every data item when stored in the firebase console, it generates a unique key each time
so that each and every data remains unique for a user.
 The database can be accessed by any user through the app real time basis.
Page | 16
Firebase Permissions
The following permissions are needed for embedding Firebase in android app.
Build.gradle (Module:app)
compile 'com.google.firebase:firebase-messaging:9.0.2'
compile "com.google.firebase:firebase-ads:9.0.2"
Import packages:
import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
Firebase Console
Page | 17
3.3. System Design
Systems design is the process of defining the architecture, components, modules, interfaces, and
data for a system to satisfy specified requirements. Systems design could be seen as the
application of systems theory to product development.
3.3.1. Use Case Design
CHAT
COMMUNICATION
LOCATION
TRACKING
NEWS FEED
User1
Google
Map
Admin
User2
Page | 18
3.3.2. Activity Diagram:
START ACTIVITY
PAGE
LOGIN
HOMEPAGE
NAVIGATION
DRAWER
LOCATION NEWSFEED
MY PROFILE
HELP CONTACT US TRAFFIC
UPDATE
Page | 19
3.4. Implementation:
3.4.1. Googlemap.java
package com.mckv.student.basic;
import android.content.pm.PackageManager;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapView;
import com.google.android.gms.maps.MapsInitializer;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.CameraPosition;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;
import static android.content.Context.LOCATION_SERVICE;
public class TabTwo extends Fragment implements OnMapReadyCallback {
private GoogleMap mMap;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle
savedInstanceState) {
View view = inflater.inflate(R.layout.tab_two, container, false);
FragmentManager manager = getFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
SupportMapFragment fragment = new SupportMapFragment();
transaction.add(R.id.mapView, fragment);
transaction.commit();
fragment.getMapAsync(this);
return view;
}
@Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
LatLng loc = new LatLng(x, y);
mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in x,y"));
mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
}
}
Page | 20
3.4.2. News Feed:
NewsFeed.java
package com.mckv.student.basic;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.database.DataSetObserver;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnKeyListener;
import android.widget.AbsListView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
/*
import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;*/
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.zip.Inflater;
public class TabOne extends Fragment
{
private static final String TAG = "ChatActivity";
private ChatArrayAdapter adp;
private ListView list;
private EditText chatText;
private boolean side = false;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle
savedInstanceState) {
View view = inflater.inflate(R.layout.tab_one, null);
//TODO: Old Code
Button send = (Button) view.findViewById(R.id.btn);
list = (ListView) view.findViewById(R.id.listview1);
chatText = (EditText) view.findViewById(R.id.chat_text);
adp = new ChatArrayAdapter(getActivity(), R.layout.chat);
list.setAdapter(adp);
chatText.setOnKeyListener(new View.OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
Page | 21
3.4.3 ChatArrayAdaptor.java
list.setAdapter(adp);
chatText.setOnKeyListener(new View.OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode ==
KeyEvent.KEYCODE_ENTER)) {
return sendChatMessage();
}
return false;
}
});
send.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
sendChatMessage();
}
});
list.setTranscriptMode(AbsListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
list.setAdapter(adp);
adp.registerDataSetObserver(new DataSetObserver() {
public void OnChanged() {
super.onChanged();
list.setSelection(adp.getCount() - 1);
}
});
return view;
}
private boolean sendChatMessage() {
adp.add(new ChatMessage(side, chatText.getText().toString()));
chatText.setText("");
side = !side;
return true;
}
package com.mckv.student.basic;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
public class ChatArrayAdapter extends ArrayAdapter<ChatMessage>{
private TextView chatText;
private List<ChatMessage> MessageList = new ArrayList<ChatMessage>();
private LinearLayout layout;
public ChatArrayAdapter(Context context, int textViewResourceId) {
super(context, textViewResourceId);
}
Page | 22
3.4.4 ChatMassage.java:
public int getCount()
{
return this.MessageList.size();
}
public ChatMessage getItem(int index){
return this.MessageList.get(index);
}
public View getView(int position,View ConvertView, ViewGroup parent){
View v = ConvertView;
if(v==null){
LayoutInflater inflater = (LayoutInflater)
this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v =inflater.inflate(R.layout.chat, parent,false);
}
layout = (LinearLayout)v.findViewById(R.id.Message1);
ChatMessage messageobj = getItem(position);
chatText =(TextView)v.findViewById(R.id.SingleMessage);
chatText.setText(messageobj.message);
layout.setGravity(messageobj.left?Gravity.LEFT:Gravity.RIGHT);
return v;
}
public Bitmap decodeToBitmap(byte[] decodedByte) {
return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length);
}
}
package com.mckv.student.basic;
public class ChatMessage {
public boolean left;
public String message;
public ChatMessage(boolean left , String message) {
// TODO Auto-generated constructor stub
super();
this.left=left;
this.message = message;
}
}
Page | 23
3.5 Process Workflow
3.3.1 Start Activity:
This is the very first activity of the Application. It contains
the name of the project and a rendering animation during the
page is loaded. After loading it the start activity will readily
redirect to the user login page.
.
3.3.2. Login Account:
To avail the App activity every user need to login with proper
user email id and password. For admin entry also same
restriction is provided. There must be entered a valid user
email id and password otherwise entry will be denied. After a
successful login user will be redirected to the next activity of
the App
.
Page | 24
3.3.3 Home Activity:
The App will redirect user to this homepage after a successful
login. The activity is fragmented two tabs: News Feed and My
Location. These two tabs are swappable to each section. The
Hamburger button, shown in top left position will open a
navigation drawer called Menu. The items of the menu list will
also redirect some activity inside the Home Activity.
3.3.4 Navigation Drawer:
The hamburger button will open a drawer type activity that
is called Navigation Drawer. It contains User name and User
email id by which the user login in to the App and a logo or
Picture of the user (if provided). After the user information a
menu list is created. The menu items are in a table layout
structure. It contains some other activity names which will
redirect user to a different layout inside the Home activity
.
Page | 25
3.3.5 My Profile:
Here users can edit their profile information like User Name, Users’
Mail id and Contact number and profile picture. This is also a
fragment activity. It will be redirected inside the Home activity.
3.3.6 News Feed:
It is designed as the open forum where users can update their own
status and can see the others’ post. The admin will approve every
update in the news feed if it is authentic. This fragment is inside the
Home activity under a swappable tab. After login this page will be
navigated at first. User can also open News feed from navigation
drawer menu also. The Screen shot of the home page is showing the
layout design of News Feed activity.
3.3.7 Track Me:
This fragment contains the Google map
layout. It will contain the current location of
the user and track them real time basis. This
fragment is also inside the Home Activity
under a swappable tab.
3.3.8 Traffic Update:
This fragment will allow user to redirect to a
webpage where current traffic update will be
available for any particular places the user
wants. They can also search for any traffic
updates of any places.
3.3.9 Contact Us:
This fragment will show the admin contact details so that user can get assist during any
unwanted condition.
3.3.10 Help:
User will be provided any help regarding the application. This fragment will contain FAQ and
some links where they can request for help.
Page | 26
Chapter 4
4. Result Analysis
In the field of Android Application, the result analysis of the functions of the all components of
the App is very important. Result analysis is a static analysis that determines which functions in
a given program can return multiple results in an efficient manner. Typically, the App should be
tested in every possible situation. Some of the analysis of major components of our App is given
in the following section.
4.1. App Test and result
Message Sending:
The most important component of our Application is Message sending to the server which will
be visible to the every user. Here we use Firebase to connect all users with a global server. Here
we can store data as it has a database connected with our App. Our testing is done by connecting
two or more user by installing the App in their phone. Then User 1 send some data and the data
is shown in the news feed as unapproved data. Then other chats also will be visible in the news
feed like a list view. Anyone having the App can see other’s update.
Also there is a radio button for approving the status. Admin can approve it if it is authentic.
Approval of the admin will be reflected along with status update to the user.
 Here One user first enter some status like ― Today Sulekha Flyover, Jadavpur will be
closed due to some construction work. Heavy traffic jam is espected ―.
 Then the other user write status ―A politicat procession is take place near Rashbihari
Avenue. So guys avoid that route‖
 Then their status is approved by the admin.
 Again a user write the status like ―At MG Road Barabazar A bus collide with a truck
standing empty. So the road will be closed up to 4 hrs. so plz avoid.‖
Followings are some screenshot of the above process.
Page | 27
Screen Shots:
1.
2.
Page | 28
3.
4.
5.
Page | 29
Location Tracking:
Another important component of our Application is current Location tracking of user. We use
Google Map API to track the current location of user. We need to add the API key of our project
to embed the Google Map services. To check the proper location of user we move different
places.. Two or more locations were tested to check whether it works accordingly or not.
 When user opens the App automatically their current location will be visible in the
Google map.
 The location is tested moving the user two or three different places.
Screen Shot:
The screenshot of those test locations are provided below:
4.2. Error Analysis
Errors Analysis studies the types and causes of language errors. Errors are classified according to
modality (i.e., level of proficiency in speaking, writing, reading, listening) linguistic levels (i.e.,
vocabulary, grammar, pronunciation, style).
In spite of having good efficiency, our App also faces some error in handling real life operations
.Following are the errors that our App faces under different circumstances:
Page | 30
 Tracking the current location in Rural places:
Due to the weak network connection the App could not find
the current locations properly in rural places. As it is totally
based on Internet connection so we cannot avoid these
situations. Under such problem the App may have a long
rendering process or it may show wrong location
 Security Concern:
Some countries don’t give permission to normal civilian to access GPS. Some countries don’t
give permission to enable the GPS button through third part App. So that should be a
problem in some cases. That’s why after Android version 4.0.3 Google introduce new kind
API along with extra permissions so that any third party App can use GPS at any time.
Page | 31
Chapter 5
5. Conclusion
As road traffic is increasing day by day, monitoring it in an effective way has been the challenge
to researchers. Since Smart phones are penetrating into common people’s lives very fast,
utilizing the sensors available in them for traffic monitoring is a good idea. All this can be done
in an energy efficient manner by using low energy consuming components of the mobile like
accelerometer and magnetometer and occasionally using GPS for localization and finding the
bearing of the road. Also, applying machine learning techniques in classifying data can help the
system to adapt to changing factors like nature of the road and vehicle type the users use. The
data processed by the mobile can be sent to a central server, which can use the information
received to annotate maps accessed by the users through this application. This annotation can
contain a lot of information like the intensity of traffic at a junction, the bumpy nature of the
road, etc.
With the improvement of the condition of the wireless network, mobile devices and so on, the
applications of the traffic information have become more and more popular from search of the
mobile data to dealing with mobile professional work. Through analyzing the system
architecture, the research realized the functions of the location and searching real-time traffic
information by making use of the Google Map data, and by using the Google Weather API and
the internet weather XML, it realized the functions of the searching real-time weather
information and weather forecast. This system based on Android can easily realize the
communicating between traffic police working information and the traffic information, which
offers a full temporal and spatial office and improves the efficiency of the working of the traffic
police. It also can get the real-time traffic information, which meets the information requirement
of the working and provides an information source for managing and easing g the traffic,
improving the efficiency of the traffic management and service. Finally, it realizes the
communication between traffic police and other kinds of police, which is very important for the
security of the society.
Overall, the system is good, but it still needs improvements to achieve a hundred percent
accuracy.
Page | 32
Chapter 6
6. Future Scope
The work covered in the thesis tries to solve various issues, which emerged as a result of
literature survey. Still there are many unopened questions left and are of interest were identified
and are mentioned below
 voice guided navigation
 Generated alerts and warnings.
 Automatically learns your frequent destinations.
 Road weather forecasts are available.
 Simple directions which are easy to follow.
 Choose the shortest path direction of the destination along with map navigation.
 Traffic map has all the information you need.
 Travel modes can be toggled between driving and walking.
 Driving routes are precisely plotted.
Page | 33
Chapter 7
7. References
 SYATEM ANALYSIS, https://developer.android.com/guide/index.html, 16/11/2016
 GOOGLE MAP API, https://developers.google.com/maps/documentation/android-
api/signup ,16/11/2016
 FIREBASE API DESIGN , https://firebase.google.com/docs/cloud-messaging/ ,
https://console.firebase.google.com/ ,17/11/2016
 PREVIOUS WORK, https://play.google.com/store/apps/details ?id=com.
waze&hl=en%20http ://joyofandroid.com/traffic-app-for-android/ 19/11/2016
 GPS, http://www.pcworld.com/article/221642/google_gps_traffic.html, 18/11/2016
 Om Prakash1, Mukul Aggarwal , Archit Vishvesha , Bhoopendra Kumar, Journal of
Advanced Computing and Communication Technologies (ISSN: 2347 - 2804) , Traffic
Detection System Using Android, 2015
 SYSTEM DESIGN https://www.tutorialspoint.com/uml/uml_activity_diagram.htm
,2./11/2016

Contenu connexe

Tendances

AVG Android App Report Q3 2015
AVG Android App Report Q3 2015AVG Android App Report Q3 2015
AVG Android App Report Q3 2015AVG Technologies
 
IRJET- TRACKITUP-An Android Application to Track Multiple Users
IRJET- TRACKITUP-An Android Application to Track Multiple UsersIRJET- TRACKITUP-An Android Application to Track Multiple Users
IRJET- TRACKITUP-An Android Application to Track Multiple UsersIRJET Journal
 
iOS vs Android History
iOS vs Android HistoryiOS vs Android History
iOS vs Android HistoryClark Davidson
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paperSravan Reddy
 
Session 12-newsbytes
Session 12-newsbytesSession 12-newsbytes
Session 12-newsbytesTechnocratz
 
Applications of useful andriod apps
Applications of useful andriod appsApplications of useful andriod apps
Applications of useful andriod appsyhs011083
 
A women secure mobile app for emergency usage (go safe app)
A women secure mobile app for emergency usage (go safe app)A women secure mobile app for emergency usage (go safe app)
A women secure mobile app for emergency usage (go safe app)eSAT Journals
 
Nolong.in: an android based incident notification application with push notif...
Nolong.in: an android based incident notification application with push notif...Nolong.in: an android based incident notification application with push notif...
Nolong.in: an android based incident notification application with push notif...IJECEIAES
 
Android Design Patterns in Mobile Application Development - Michalis Grigorop...
Android Design Patterns in Mobile Application Development - Michalis Grigorop...Android Design Patterns in Mobile Application Development - Michalis Grigorop...
Android Design Patterns in Mobile Application Development - Michalis Grigorop...Michail Grigoropoulos
 
Android development
Android developmentAndroid development
Android developmentAsif Larra
 
Introduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportIntroduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportAtul Panjwani
 
Android Application Development for Social Network
Android Application Development for Social NetworkAndroid Application Development for Social Network
Android Application Development for Social NetworkIRJET Journal
 
Research paper on android social blogging application if deptt- sept 21 (1)
Research paper on android social blogging application if deptt- sept 21 (1)Research paper on android social blogging application if deptt- sept 21 (1)
Research paper on android social blogging application if deptt- sept 21 (1)AISSMS
 
লেকচার ১ (ক)- শুরুর আগে:
লেকচার ১ (ক)- শুরুর আগে:লেকচার ১ (ক)- শুরুর আগে:
লেকচার ১ (ক)- শুরুর আগে:Ahsanul Karim
 
Live Streaming Application Development
Live Streaming Application DevelopmentLive Streaming Application Development
Live Streaming Application DevelopmentMarie Weaver
 
IRJET- Implementation of Handling Android Application using SMS(Short Mes...
IRJET-  	  Implementation of Handling Android Application using SMS(Short Mes...IRJET-  	  Implementation of Handling Android Application using SMS(Short Mes...
IRJET- Implementation of Handling Android Application using SMS(Short Mes...IRJET Journal
 

Tendances (20)

Android wear
Android wearAndroid wear
Android wear
 
AVG Android App Report Q3 2015
AVG Android App Report Q3 2015AVG Android App Report Q3 2015
AVG Android App Report Q3 2015
 
IRJET- TRACKITUP-An Android Application to Track Multiple Users
IRJET- TRACKITUP-An Android Application to Track Multiple UsersIRJET- TRACKITUP-An Android Application to Track Multiple Users
IRJET- TRACKITUP-An Android Application to Track Multiple Users
 
Android
AndroidAndroid
Android
 
iOS vs Android History
iOS vs Android HistoryiOS vs Android History
iOS vs Android History
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paper
 
Session 12-newsbytes
Session 12-newsbytesSession 12-newsbytes
Session 12-newsbytes
 
Applications of useful andriod apps
Applications of useful andriod appsApplications of useful andriod apps
Applications of useful andriod apps
 
A women secure mobile app for emergency usage (go safe app)
A women secure mobile app for emergency usage (go safe app)A women secure mobile app for emergency usage (go safe app)
A women secure mobile app for emergency usage (go safe app)
 
Nolong.in: an android based incident notification application with push notif...
Nolong.in: an android based incident notification application with push notif...Nolong.in: an android based incident notification application with push notif...
Nolong.in: an android based incident notification application with push notif...
 
Android Introduction
Android IntroductionAndroid Introduction
Android Introduction
 
Android Design Patterns in Mobile Application Development - Michalis Grigorop...
Android Design Patterns in Mobile Application Development - Michalis Grigorop...Android Design Patterns in Mobile Application Development - Michalis Grigorop...
Android Design Patterns in Mobile Application Development - Michalis Grigorop...
 
Android development
Android developmentAndroid development
Android development
 
Introduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportIntroduction to Android development - Presentation Report
Introduction to Android development - Presentation Report
 
Android Application Development for Social Network
Android Application Development for Social NetworkAndroid Application Development for Social Network
Android Application Development for Social Network
 
Research paper on android social blogging application if deptt- sept 21 (1)
Research paper on android social blogging application if deptt- sept 21 (1)Research paper on android social blogging application if deptt- sept 21 (1)
Research paper on android social blogging application if deptt- sept 21 (1)
 
লেকচার ১ (ক)- শুরুর আগে:
লেকচার ১ (ক)- শুরুর আগে:লেকচার ১ (ক)- শুরুর আগে:
লেকচার ১ (ক)- শুরুর আগে:
 
Live Streaming Application Development
Live Streaming Application DevelopmentLive Streaming Application Development
Live Streaming Application Development
 
IRJET- Implementation of Handling Android Application using SMS(Short Mes...
IRJET-  	  Implementation of Handling Android Application using SMS(Short Mes...IRJET-  	  Implementation of Handling Android Application using SMS(Short Mes...
IRJET- Implementation of Handling Android Application using SMS(Short Mes...
 
Capistrano, paul
Capistrano, paulCapistrano, paul
Capistrano, paul
 

Similaire à Real-Time Traffic App for Safe Journeys

Introduction to android
Introduction to androidIntroduction to android
Introduction to androidSwapnali Pawar
 
Android and android phones
Android and android phonesAndroid and android phones
Android and android phonesDorothy Marcella
 
Accident detection
Accident detection Accident detection
Accident detection Samana Rao
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assARVIND SARDAR
 
Augmented Reality Design of Indonesia Fruit Recognition
Augmented Reality Design of Indonesia Fruit Recognition Augmented Reality Design of Indonesia Fruit Recognition
Augmented Reality Design of Indonesia Fruit Recognition IJECEIAES
 
Android operating system (1).ppt
Android operating system (1).pptAndroid operating system (1).ppt
Android operating system (1).pptNishantSingh881100
 
Android operating system.ppt
Android operating system.pptAndroid operating system.ppt
Android operating system.pptimau6
 
Android operating system.ppt
Android operating system.pptAndroid operating system.ppt
Android operating system.pptKavitaKanwar7
 
Key Services in the Application Framework.pdf
Key Services in the Application Framework.pdfKey Services in the Application Framework.pdf
Key Services in the Application Framework.pdfMike Brown
 
Android_for_Work
Android_for_WorkAndroid_for_Work
Android_for_WorkSaba Sabrin
 
android and android phones
android and android phonesandroid and android phones
android and android phonesAhbie Betita
 
Android Vs Iphone
Android Vs IphoneAndroid Vs Iphone
Android Vs IphoneLucy Nader
 
Know all about android development
Know all about android developmentKnow all about android development
Know all about android developmentDeepika Chaudhary
 
PERSONAL SAFETY TRIGGERING SYSTEM ON ANDROID MOBILE PLATFORM
PERSONAL SAFETY TRIGGERING SYSTEM ON ANDROID MOBILE PLATFORMPERSONAL SAFETY TRIGGERING SYSTEM ON ANDROID MOBILE PLATFORM
PERSONAL SAFETY TRIGGERING SYSTEM ON ANDROID MOBILE PLATFORMIJNSA Journal
 
Android-smartphones-userfriedly-google
Android-smartphones-userfriedly-googleAndroid-smartphones-userfriedly-google
Android-smartphones-userfriedly-googleSouvik Chakrabarti
 
B041130610
B041130610B041130610
B041130610IOSR-JEN
 

Similaire à Real-Time Traffic App for Safe Journeys (20)

Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android and android phones
Android and android phonesAndroid and android phones
Android and android phones
 
Google android
Google androidGoogle android
Google android
 
Accident detection
Accident detection Accident detection
Accident detection
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-ass
 
SensActions-Report
SensActions-ReportSensActions-Report
SensActions-Report
 
Augmented Reality Design of Indonesia Fruit Recognition
Augmented Reality Design of Indonesia Fruit Recognition Augmented Reality Design of Indonesia Fruit Recognition
Augmented Reality Design of Indonesia Fruit Recognition
 
Android operating system (1).ppt
Android operating system (1).pptAndroid operating system (1).ppt
Android operating system (1).ppt
 
Android operating system.ppt
Android operating system.pptAndroid operating system.ppt
Android operating system.ppt
 
Android operating system.ppt
Android operating system.pptAndroid operating system.ppt
Android operating system.ppt
 
Key Services in the Application Framework.pdf
Key Services in the Application Framework.pdfKey Services in the Application Framework.pdf
Key Services in the Application Framework.pdf
 
Android_for_Work
Android_for_WorkAndroid_for_Work
Android_for_Work
 
android and android phones
android and android phonesandroid and android phones
android and android phones
 
Android Vs Iphone
Android Vs IphoneAndroid Vs Iphone
Android Vs Iphone
 
Know all about android development
Know all about android developmentKnow all about android development
Know all about android development
 
Powerpoint activity 2
Powerpoint activity 2Powerpoint activity 2
Powerpoint activity 2
 
PERSONAL SAFETY TRIGGERING SYSTEM ON ANDROID MOBILE PLATFORM
PERSONAL SAFETY TRIGGERING SYSTEM ON ANDROID MOBILE PLATFORMPERSONAL SAFETY TRIGGERING SYSTEM ON ANDROID MOBILE PLATFORM
PERSONAL SAFETY TRIGGERING SYSTEM ON ANDROID MOBILE PLATFORM
 
Android-smartphones-userfriedly-google
Android-smartphones-userfriedly-googleAndroid-smartphones-userfriedly-google
Android-smartphones-userfriedly-google
 
Android report
Android reportAndroid report
Android report
 
B041130610
B041130610B041130610
B041130610
 

Dernier

CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 

Dernier (20)

CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 

Real-Time Traffic App for Safe Journeys

  • 1. Page | 1 Contents Sl. No Description Page No 1. Chapter 1 1. Introduction 1.1. System Analysis 3-7 2. Chapter 2 2. Previous Work 8-9 3. Chapter 3 3. Present Work 3.1. System Specification 3.2. System Structure 3.3. System Design 3.4. System Implementation 3.5. Process Workflow 10-25 4. Chapter 4 4. Result Analysis 4.1. App test and result 4.2. Error analysis 26-30 5. Chapter 5 5. Conclusion 31 6. Chapter 6 6. Future Scope 32 7. Chapter 7 7. References 33
  • 2. Page | 2 Abstract There's nothing worse, especially at the end of a long work day or when you're on the way to a well-deserved long weekend at the beach or cottage. There might be alternate routes you could take that would reduce the amount of time you spend in traffic, but how will you know unless you have traffic apps? Our project “Safe Journey” is an Android App that focuses on the real-time traffic reporting to the user. It will also allow user to update individual status in an open forum. The News Feed will be updated according to the user’s location. The Google map is embedded with the system to track the current location of the user. There are also some modules like traffic updates, and alternative driving routes.
  • 3. Page | 3 Chapter 1 1. Introduction In past five years, social networking applications had gained a lot of support and popularity all over the world.‖The world is a global village ―; this terminology has proven true in this aspect. So taking this thought into consideration, we have developed an application which would be a different view point in social networking world. Traffic reporting is the near real-time distribution of information about road conditions such as traffic congestion, detours, and traffic collisions. This report will help drivers anticipate and avoid traffic problems. Traffic reports, especially in cities, may also report on major delays to mass transit that involves roads. In spite of that for emergency services like Ambulance, Fire brigade, police, Rescue operation team the real time traffic report update system is highly recommended. For rapid and periodic broadcast reports, traffic information should be transmitted to GPS units, smart phones, and personal computers, Tab etc. With the improvement of the condition of the wireless network, mobile devices and so on, the applications of the traffic information have become more and more popular from search of the mobile data to dealing with mobile professional work. Through analyzing the system architecture, the research realized the functions of the location and searching real-time traffic information by making use of the Google Map data, and by using the Google Weather API and the internet weather XML, it realized the functions of the searching real-time weather information and weather forecast.
  • 4. Page | 4 1.1. System Analysis 1.1.1. System Objectives: Communication over a network is one field where this tool finds wide ranging application. Traffic update application establishes a connection between 2 or more systems connected over an intranet or ad-hoc. This tool can be used for large scale communication and conferencing in an organization or campus of vast size, thus increasing the standard of co-operation. In addition it will also perform current location tracking of the device or user. This software can have further potentials, such as client and admin interaction through server, efficient GPS system that will also provide route guidance. 1.1.2. Developing System: Android Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touch screen mobile devices such as smart phones and tablets. Android, Inc. was founded in Palo Alto, California in October 2003 by Andy Rubin (co- founder of Danger),Rich Miner (co-founder of Wildfire Communications, Inc.),Nick Sears (once VP at T-Mobile) and Chris White (headed design and interface development at WebTV) to develop, in Rubin's words, "smarter mobile devices that are more aware of its owner's location and preferences". The early intentions of the company were to develop an advanced operating system for digital cameras. Though, when it was realized that the market for the devices was not large enough, the company diverted its efforts toward producing a smart phone operating system that would rival Symbian and Microsoft Windows Mobile. Android's user interface is mainly based on direct manipulation, using touch gestures that loosely correspond to real-world actions, such as swiping, tapping and pinching, to manipulate on-screen objects, along with a virtual keyboard for text input. Android has the largest installed base of all operating systems (OS) of any kind. Android has been the best selling OS on tablets since 2013, and on smart phones it is dominant by any metric.
  • 5. Page | 5 1.1.2.1. Interface: Android's default user interface is mainly based on direct manipulation, using touch inputs that loosely correspond to real-world actions, like swiping, tapping, pinching, and reverse pinching to manipulate on-screen objects, along with a virtual keyboard. Game controllers and full-size physical keyboards are supported via Bluetooth or USB. The response to user input is designed to be immediate and provides a fluid touch interface, often using the vibration capabilities of the device to provide rapid feedback to the user. Internal hardware of Android devices boot to the home screen, the primary navigation and information "hub" on Android devices that is analogous to the desktop found on personal computers. A home screen may be made up of several pages, between which the user can swipe back and forth, though Android's home screen interface is heavily customizable, allowing users to adjust the look and feel of the devices to their tastes. Third-party apps available on Google Play and other app stores can extensively re-theme the home screen. Android provides the ability to run applications that change the default launcher, and hence the appearance and externally visible behaviour of Android. These appearance changes include a multi-page dock or no dock, and many more changes to fundamental features of the user interface. 1.1.2.2. Applications Applications ("apps") extend the functionality of devices. Android Apps are written using the Android software development kit (SDK) and, often, the Java programming language that has complete access to the Android APIs. The SDK includes a comprehensive set of development tools, including a debugger, software libraries, a handset emulator based on QEMU, documentation, sample code, and tutorials. Initially, Google's supported integrated development environment (IDE) was Eclipse using the Android Development Tools (ADT) plugin; in December 2014, Google released Android Studio, based on IntelliJ IDEA, as its primary IDE for Android application development. . In January 2014, Google unveiled a framework based on Apache Cordova for porting Chrome HTML 5 web applications to Android, wrapped in a native application shell. Android has a growing selection of third-party applications, which can be acquired by users by downloading and installing the application's APK (Android application package) that allows users to install, update, and remove applications from their devices. Google Play Store is the primary application store installed on Android devices that comply with Google's compatibility
  • 6. Page | 6 requirements and license the Google Mobile Services software. 1.1.2.3. Memory management Since Android devices are usually battery-powered, Android is designed to manage processes to keep power consumption to a minimum. When an application is not in use the system suspends its operation so that, while available for immediate use rather than closed, it does not use battery power or CPU resources. Android manages the applications stored in memory automatically. When memory is low, the system will begin invisibly and automatically closing inactive processes, starting with those that have been inactive for longest. 1.1.2.4. Security and privacy  Scope of surveillance by public institutions As part of the broader 2013 mass surveillance disclosures it was revealed in September 2013 that the American and British intelligence agencies, the National Security Agency(NSA) and Government Communications Headquarters (GCHQ). They are reportedly able to read almost all smartphone information, including SMS, location, emails, and notes. In January 2014, further reports revealed the intelligence agencies' capabilities to intercept the personal information transmitted across the Internet by social networks and other popular applications such as Angry Birds, which collect personal information of their users for advertising and other commercial reasons.  Common security threats Research from security companies list premium service abuse as the most common type of Android malware, where text messages are sent from infected phones to premium-rate telephone numbers. Security threats on Android are reportedly growing exponentially; however, Google engineers have argued that the malware and virus threat on Android is being exaggerated by security companies for commercial reasons and have accused the security industry of playing on fears to sell virus protection software to users.  Technical security features Android applications run in a sandbox, an isolated area of the system that does not have access to the rest of the system's resources, unless access permissions are explicitly granted by the user when the application is installed. Before installing an application, Play Store displays all required permissions: a game may need to enable vibration or save data to an SD card. After reviewing these permissions, the user can choose to accept or refuse them, installing the application only if they accept. In Android 6.0 Marshmallow, the permissions system was changed to allow the user to control an application's permissions individually, to block applications if desired from having access to the device's contacts, calendar, phone, sensors, SMS, location, microphone and camera. Full permission control is only possible with root access to the device.
  • 7. Page | 7 1.1.2.5. Virtual reality At Google I/O on May 2016, Google announced Daydream, a virtual reality platform that relies on a smart phone and provides VR capabilities through a virtual reality headset and controller designed by Google itself. The platform is built into Android starting with Android Nougat, differentiating from standalone support for VR capabilities. The software is available for developers, and was released in 2016. 1.1.2.6. Platform usage Charts in this section provide breakdowns of Android versions, based on devices accessing the Google Play Store in a seven-day period ending on November 7, 2016. Therefore, these statistics exclude devices running various Android forks that do not access the Google Play Store. Since May 2016, more than half of devices have OpenGL ES 3.0 or higher.
  • 8. Page | 8 Chapter 2 2. Previous Work WAZE Waze has an interesting concept which actually works better the more users are gathered. The app basically allows you to be a Good Samaritan and tell others about the traffic condition. The app boasts a live routing based on community generated alerts. For example if you see a traffic jam ahead, you update the app so that the newcomers will get warned. This is a give and take relationship and it works quite well. Features:  Community generated alerts and warnings.  Great voice guided navigation.  Automatically learns your frequent destinations.  Finds the cheapest gas station ion your route UDOT Traffic: UDOT Traffic is an amazing traffic app for Android but it is only available for residents of Utah. The traffic app provides mobile access information for Utah roadways directly from the Utah Department of Transportation. The map can be zoomed and scrolled around with easy and shows exactly what is happening on the road of the state. Current traffic condition on the freeways and main surface streets is also presented in style. This traffic app for Android is last because it is available only for one state. Features:  Travel Wise alerts are great.  A list of construction activities, hazards and accidents is given.  Road weather forecasts are available.
  • 9. Page | 9 NZ Traffic: If you happen to live in New Zealand, then this traffic app for Android is the best one for you. From traffic webcam views to congestion info the app provides it all to the New Zealanders. The app allows you to view live traffic cameras from around the country which include big cities like Auckland, Christchurch, Wellington and Hamilton. A handy map is also displayed for easy selection of cameras. This of course means that you can view the traffic first hand without being stuck on the road. Features:  The map saves a lot of time.  Big cities are covered well.  The app can be moved to SD card. Notable Feature: Congestion information regarding each camera is given if it is available. Michelin Navigation: Michelin Navigation is a free traffic app for android which aids in your day-to-day travels. The app has real-time traffic information which means you will know when the bridge is being choked by the morning traffic. The app also tells you when a particular route is closed and thankfully offers alternatives. The schematic and uncluttered presentation makes this app a truly desirable one. So why is the app not ranking a bit better in the 10 best traffic app for android list? The only reason for that is the unavailability of the app in the United States of America. Features:  Visual warnings for excessive speed.  Speed limits are continuously displayed on- screen.  Simple directions which are easy to follow. Notable Feature: The app actually calculates the traffic on any road and tells you how much time it will take to reach your destination. This means that the app intelligently adds more time to the normal duration of travel according to the traffic load.
  • 10. Page | 10 Chapter 3 3. Present Work 3.1. System Specification: 3.1.1. Hardware requirements In hardware requirement we require all those components which will provide us the platform for the development of the project. The minimum hardware required for the development of this project is as follows—  RAM - 4 GB or more  System Type – 64 bit Operating System  Hard disk space - 2 GB (500 MB for IDE + 1.5 GB for Android SDK )  Processor- Intel Pentium 4 or AMD Athlon 2 GHz (or faster)  Monitor Screen Resolution - 1280 x 800 These all are the minimum hardware requirement required for our project. We want to make our project to be used in any type of computer therefore we have taken minimum configuration to a large extent. 4GB RAM is used so that we can execute our project in a least possible RAM. 5 GB hard disk is used because project takes less space to be executed or stored. Other enhancements are done according to the needs.
  • 11. Page | 11 3.1.2 Software requirements Software’s can be defined as programs which run on our computer. It acts as petrol in the vehicle. It provides the relationship between the human and a computer. It is very important to run software to function the computer. The software requirements for developing this project are as follows—  Android Studio – version 2.1.2 (64 bit OS)  Android SDK tools –version 25.0.0  Android SDK platform- API 24 (Android 7 –Nougat)  Java SE JDK -version 8  Operating system-Windows 7, Windows 8,windows  Virtual Environment- VMware player  Virtual Emulator – Nexus API 24 We use Android Studio 2.2.2 for acquire lat0est facilities and features. The SDK platform we choose is SDK 25.2.2 which is more suitable version for Android Studio 2.2.2. The virtual Emulator we use for execution of the program is Nexus S API 24.In case of real time testingour App we use Android Phone with android version 6. Other software are also installed and updated according to the need of our project operation during development period.
  • 12. Page | 12 3.2 System Structure: The structure of an Android application is fairly rigidly defined. In order for things to work properly, you need to put keep certain files in the right places. At the end of this chapter, we also discuss how basic app and screen navigation works on Android devices. 3.2.1 Project Structure: Safe Journey Safe journey [2016] is an android application based on real time traffic update system. The app basically allows you to be a Good Samaritan and tell others about the traffic condition. The app informs you of any seasonal road closure, road accident, construction, traffic congestion and special events which impact the traffic flow. If there is a big football game going on, the app will tell you when the traffic load will be high. The app users also can update their status in the open forum. For example if you see a traffic jam ahead, you update the traffic condition to the app so that the newcomers will get warned. This is a give and take relationship and it works quite well. This concept will work better if the more users are gathered .There will be another type of user, called admin, a group of administrative people who will confirm the users’ update. They will check the authentication of the status and approve the users’ update in the newsfeed. They can also update authentic traffic news in the common forum. However, The application is very useful for emergency services like Ambulance, Fire Brigade, Rescue Team services, Police for prompt action as well as common people to avoid the daily road traffic jam. There is a picture attached below of the product-
  • 13. Page | 13 Features  Real time traffic update  User gets a open forum to share their update and discuss  The update status can be authenticated by Admin to avoid any fake update  Map Navigation ,track users’ current location  User can have real-time help if any unwanted situation occurs through the help-line number. 3.2.2. Project Components API Design Google Map With the Google Maps Android API, the Google Map is attached with our application. It can find the current location of the user using GPS. The API automatically handles access to Google Maps servers, data downloading, map display, and response to map gestures. We use API calls to add markers, polygons, and overlays to a basic map, and to change the user's view of a particular map area. These objects provide additional information for map locations, and allow user interaction with the map. The API allows user to add these graphics to a map:  Icons anchored to specific positions on the map (Markers).  Sets of line segments (Poly lines).  Enclosed segments (Polygons).  Bitmap graphics anchored to specific positions on the map (Ground Overlays).  Sets of images which are displayed on top of the base map tiles (Tile Overlays). The Google map is attached with the Android App using a unique API key value. To generate the key value, we need to register our project to the Google API Console. There one unique API key value for Google Maps is generated exclusively for the registered project. Using this particular API key value in the manifest file Google Map is accessed in our Android App. Google Map API Permissions: AndroidManifest.xml
  • 14. Page | 14 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> API key attachment: strings.xml <resources> … <string name="google_maps_key">AIzaSyAJaEiKVReYcWXe87wGZdsY2b4-xiQLR3I</string> </resources> API Key Generation:
  • 15. Page | 15 Firebase Firebase is a mobile and web application platform with tools and infrastructure designed to help developers build high-quality apps. Firebase provides features like Cloud Messaging, Database, Storage etc. We use firebase Cloud messaging platform and Firebase database in our application to maintain the news feed server. Here also we need to register our project or can use existing project to use the firebase database. We first design the Real time database in firebase console. Then the API key value for firebase is added in the source code. Firebase real time database design:  Firebase database is a tree like data structure. Here the data root is first created in the firebase console. Next onwards the real time data is stored in this data base.  Every data item when stored in the firebase console, it generates a unique key each time so that each and every data remains unique for a user.  The database can be accessed by any user through the app real time basis.
  • 16. Page | 16 Firebase Permissions The following permissions are needed for embedding Firebase in android app. Build.gradle (Module:app) compile 'com.google.firebase:firebase-messaging:9.0.2' compile "com.google.firebase:firebase-ads:9.0.2" Import packages: import com.google.firebase.database.ChildEventListener; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.ValueEventListener; Firebase Console
  • 17. Page | 17 3.3. System Design Systems design is the process of defining the architecture, components, modules, interfaces, and data for a system to satisfy specified requirements. Systems design could be seen as the application of systems theory to product development. 3.3.1. Use Case Design CHAT COMMUNICATION LOCATION TRACKING NEWS FEED User1 Google Map Admin User2
  • 18. Page | 18 3.3.2. Activity Diagram: START ACTIVITY PAGE LOGIN HOMEPAGE NAVIGATION DRAWER LOCATION NEWSFEED MY PROFILE HELP CONTACT US TRAFFIC UPDATE
  • 19. Page | 19 3.4. Implementation: 3.4.1. Googlemap.java package com.mckv.student.basic; import android.content.pm.PackageManager; import android.location.Criteria; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.support.v4.app.ActivityCompat; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.MapView; import com.google.android.gms.maps.MapsInitializer; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.maps.model.CameraPosition; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.Marker; import com.google.android.gms.maps.model.MarkerOptions; import static android.content.Context.LOCATION_SERVICE; public class TabTwo extends Fragment implements OnMapReadyCallback { private GoogleMap mMap; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.tab_two, container, false); FragmentManager manager = getFragmentManager(); FragmentTransaction transaction = manager.beginTransaction(); SupportMapFragment fragment = new SupportMapFragment(); transaction.add(R.id.mapView, fragment); transaction.commit(); fragment.getMapAsync(this); return view; } @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; LatLng loc = new LatLng(x, y); mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in x,y")); mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney)); } }
  • 20. Page | 20 3.4.2. News Feed: NewsFeed.java package com.mckv.student.basic; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.database.DataSetObserver; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.View.OnKeyListener; import android.widget.AbsListView; import android.widget.Button; import android.widget.EditText; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; /* import com.google.firebase.database.ChildEventListener; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.ValueEventListener;*/ import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.zip.Inflater; public class TabOne extends Fragment { private static final String TAG = "ChatActivity"; private ChatArrayAdapter adp; private ListView list; private EditText chatText; private boolean side = false; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.tab_one, null); //TODO: Old Code Button send = (Button) view.findViewById(R.id.btn); list = (ListView) view.findViewById(R.id.listview1); chatText = (EditText) view.findViewById(R.id.chat_text); adp = new ChatArrayAdapter(getActivity(), R.layout.chat); list.setAdapter(adp); chatText.setOnKeyListener(new View.OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) {
  • 21. Page | 21 3.4.3 ChatArrayAdaptor.java list.setAdapter(adp); chatText.setOnKeyListener(new View.OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode == KeyEvent.KEYCODE_ENTER)) { return sendChatMessage(); } return false; } }); send.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { sendChatMessage(); } }); list.setTranscriptMode(AbsListView.TRANSCRIPT_MODE_ALWAYS_SCROLL); list.setAdapter(adp); adp.registerDataSetObserver(new DataSetObserver() { public void OnChanged() { super.onChanged(); list.setSelection(adp.getCount() - 1); } }); return view; } private boolean sendChatMessage() { adp.add(new ChatMessage(side, chatText.getText().toString())); chatText.setText(""); side = !side; return true; } package com.mckv.student.basic; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LinearLayout; import android.widget.TextView; public class ChatArrayAdapter extends ArrayAdapter<ChatMessage>{ private TextView chatText; private List<ChatMessage> MessageList = new ArrayList<ChatMessage>(); private LinearLayout layout; public ChatArrayAdapter(Context context, int textViewResourceId) { super(context, textViewResourceId); }
  • 22. Page | 22 3.4.4 ChatMassage.java: public int getCount() { return this.MessageList.size(); } public ChatMessage getItem(int index){ return this.MessageList.get(index); } public View getView(int position,View ConvertView, ViewGroup parent){ View v = ConvertView; if(v==null){ LayoutInflater inflater = (LayoutInflater) this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); v =inflater.inflate(R.layout.chat, parent,false); } layout = (LinearLayout)v.findViewById(R.id.Message1); ChatMessage messageobj = getItem(position); chatText =(TextView)v.findViewById(R.id.SingleMessage); chatText.setText(messageobj.message); layout.setGravity(messageobj.left?Gravity.LEFT:Gravity.RIGHT); return v; } public Bitmap decodeToBitmap(byte[] decodedByte) { return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); } } package com.mckv.student.basic; public class ChatMessage { public boolean left; public String message; public ChatMessage(boolean left , String message) { // TODO Auto-generated constructor stub super(); this.left=left; this.message = message; } }
  • 23. Page | 23 3.5 Process Workflow 3.3.1 Start Activity: This is the very first activity of the Application. It contains the name of the project and a rendering animation during the page is loaded. After loading it the start activity will readily redirect to the user login page. . 3.3.2. Login Account: To avail the App activity every user need to login with proper user email id and password. For admin entry also same restriction is provided. There must be entered a valid user email id and password otherwise entry will be denied. After a successful login user will be redirected to the next activity of the App .
  • 24. Page | 24 3.3.3 Home Activity: The App will redirect user to this homepage after a successful login. The activity is fragmented two tabs: News Feed and My Location. These two tabs are swappable to each section. The Hamburger button, shown in top left position will open a navigation drawer called Menu. The items of the menu list will also redirect some activity inside the Home Activity. 3.3.4 Navigation Drawer: The hamburger button will open a drawer type activity that is called Navigation Drawer. It contains User name and User email id by which the user login in to the App and a logo or Picture of the user (if provided). After the user information a menu list is created. The menu items are in a table layout structure. It contains some other activity names which will redirect user to a different layout inside the Home activity .
  • 25. Page | 25 3.3.5 My Profile: Here users can edit their profile information like User Name, Users’ Mail id and Contact number and profile picture. This is also a fragment activity. It will be redirected inside the Home activity. 3.3.6 News Feed: It is designed as the open forum where users can update their own status and can see the others’ post. The admin will approve every update in the news feed if it is authentic. This fragment is inside the Home activity under a swappable tab. After login this page will be navigated at first. User can also open News feed from navigation drawer menu also. The Screen shot of the home page is showing the layout design of News Feed activity. 3.3.7 Track Me: This fragment contains the Google map layout. It will contain the current location of the user and track them real time basis. This fragment is also inside the Home Activity under a swappable tab. 3.3.8 Traffic Update: This fragment will allow user to redirect to a webpage where current traffic update will be available for any particular places the user wants. They can also search for any traffic updates of any places. 3.3.9 Contact Us: This fragment will show the admin contact details so that user can get assist during any unwanted condition. 3.3.10 Help: User will be provided any help regarding the application. This fragment will contain FAQ and some links where they can request for help.
  • 26. Page | 26 Chapter 4 4. Result Analysis In the field of Android Application, the result analysis of the functions of the all components of the App is very important. Result analysis is a static analysis that determines which functions in a given program can return multiple results in an efficient manner. Typically, the App should be tested in every possible situation. Some of the analysis of major components of our App is given in the following section. 4.1. App Test and result Message Sending: The most important component of our Application is Message sending to the server which will be visible to the every user. Here we use Firebase to connect all users with a global server. Here we can store data as it has a database connected with our App. Our testing is done by connecting two or more user by installing the App in their phone. Then User 1 send some data and the data is shown in the news feed as unapproved data. Then other chats also will be visible in the news feed like a list view. Anyone having the App can see other’s update. Also there is a radio button for approving the status. Admin can approve it if it is authentic. Approval of the admin will be reflected along with status update to the user.  Here One user first enter some status like ― Today Sulekha Flyover, Jadavpur will be closed due to some construction work. Heavy traffic jam is espected ―.  Then the other user write status ―A politicat procession is take place near Rashbihari Avenue. So guys avoid that route‖  Then their status is approved by the admin.  Again a user write the status like ―At MG Road Barabazar A bus collide with a truck standing empty. So the road will be closed up to 4 hrs. so plz avoid.‖ Followings are some screenshot of the above process.
  • 27. Page | 27 Screen Shots: 1. 2.
  • 29. Page | 29 Location Tracking: Another important component of our Application is current Location tracking of user. We use Google Map API to track the current location of user. We need to add the API key of our project to embed the Google Map services. To check the proper location of user we move different places.. Two or more locations were tested to check whether it works accordingly or not.  When user opens the App automatically their current location will be visible in the Google map.  The location is tested moving the user two or three different places. Screen Shot: The screenshot of those test locations are provided below: 4.2. Error Analysis Errors Analysis studies the types and causes of language errors. Errors are classified according to modality (i.e., level of proficiency in speaking, writing, reading, listening) linguistic levels (i.e., vocabulary, grammar, pronunciation, style). In spite of having good efficiency, our App also faces some error in handling real life operations .Following are the errors that our App faces under different circumstances:
  • 30. Page | 30  Tracking the current location in Rural places: Due to the weak network connection the App could not find the current locations properly in rural places. As it is totally based on Internet connection so we cannot avoid these situations. Under such problem the App may have a long rendering process or it may show wrong location  Security Concern: Some countries don’t give permission to normal civilian to access GPS. Some countries don’t give permission to enable the GPS button through third part App. So that should be a problem in some cases. That’s why after Android version 4.0.3 Google introduce new kind API along with extra permissions so that any third party App can use GPS at any time.
  • 31. Page | 31 Chapter 5 5. Conclusion As road traffic is increasing day by day, monitoring it in an effective way has been the challenge to researchers. Since Smart phones are penetrating into common people’s lives very fast, utilizing the sensors available in them for traffic monitoring is a good idea. All this can be done in an energy efficient manner by using low energy consuming components of the mobile like accelerometer and magnetometer and occasionally using GPS for localization and finding the bearing of the road. Also, applying machine learning techniques in classifying data can help the system to adapt to changing factors like nature of the road and vehicle type the users use. The data processed by the mobile can be sent to a central server, which can use the information received to annotate maps accessed by the users through this application. This annotation can contain a lot of information like the intensity of traffic at a junction, the bumpy nature of the road, etc. With the improvement of the condition of the wireless network, mobile devices and so on, the applications of the traffic information have become more and more popular from search of the mobile data to dealing with mobile professional work. Through analyzing the system architecture, the research realized the functions of the location and searching real-time traffic information by making use of the Google Map data, and by using the Google Weather API and the internet weather XML, it realized the functions of the searching real-time weather information and weather forecast. This system based on Android can easily realize the communicating between traffic police working information and the traffic information, which offers a full temporal and spatial office and improves the efficiency of the working of the traffic police. It also can get the real-time traffic information, which meets the information requirement of the working and provides an information source for managing and easing g the traffic, improving the efficiency of the traffic management and service. Finally, it realizes the communication between traffic police and other kinds of police, which is very important for the security of the society. Overall, the system is good, but it still needs improvements to achieve a hundred percent accuracy.
  • 32. Page | 32 Chapter 6 6. Future Scope The work covered in the thesis tries to solve various issues, which emerged as a result of literature survey. Still there are many unopened questions left and are of interest were identified and are mentioned below  voice guided navigation  Generated alerts and warnings.  Automatically learns your frequent destinations.  Road weather forecasts are available.  Simple directions which are easy to follow.  Choose the shortest path direction of the destination along with map navigation.  Traffic map has all the information you need.  Travel modes can be toggled between driving and walking.  Driving routes are precisely plotted.
  • 33. Page | 33 Chapter 7 7. References  SYATEM ANALYSIS, https://developer.android.com/guide/index.html, 16/11/2016  GOOGLE MAP API, https://developers.google.com/maps/documentation/android- api/signup ,16/11/2016  FIREBASE API DESIGN , https://firebase.google.com/docs/cloud-messaging/ , https://console.firebase.google.com/ ,17/11/2016  PREVIOUS WORK, https://play.google.com/store/apps/details ?id=com. waze&hl=en%20http ://joyofandroid.com/traffic-app-for-android/ 19/11/2016  GPS, http://www.pcworld.com/article/221642/google_gps_traffic.html, 18/11/2016  Om Prakash1, Mukul Aggarwal , Archit Vishvesha , Bhoopendra Kumar, Journal of Advanced Computing and Communication Technologies (ISSN: 2347 - 2804) , Traffic Detection System Using Android, 2015  SYSTEM DESIGN https://www.tutorialspoint.com/uml/uml_activity_diagram.htm ,2./11/2016