Android Weather App
Android Weather App
Table of Contents
Recommendation ……………………………………………………………..… II
Abstract ………………………………………………………………………….IV
1|Page
ANDROID WEATHER APP
Introduction
Rationale:
Weather forecasting is the application of science and technology to predict the
conditions of the atmosphere for a given location and time. Human beings have
attempted to predict the weather informally and formally since the 19th century.
Weather forecasts are made by collecting quantitative data about the current
state of the atmosphere at a given place and using meteorology to project how
the atmosphere will change. Once a human-only endeavor based mainly upon
changes in barometric pressure, current weather conditions, and sky condition,
weather forecasting now relies on computer based models that take many
atmospheric factors into account. Human input is still required to pick the best
possible forecast model to base the forecast upon, which involves pattern
recognition skills, teleconnections, knowledge of model performance, and
knowledge of model biases. The inaccuracy of forecasting is due to the chaotic
nature of the atmosphere, the massive computational power required to solve
the equations that describe the atmosphere, the error involved in measuring the
initial conditions, and an incomplete understanding of atmospheric processes.
Hence, forecasts become less accurate as the difference between current time
and the time for which the forecast is being made increases. The use of
ensembles and model consensus help narrow the error and pick the most likely
outcome.
There are a variety of end uses to weather forecasts. Weather warnings are
important forecasts because they are used to protect life and property. Forecasts
based on temperature and precipitation are important to agriculture, and
therefore to traders within commodity markets. Temperature forecasts are used
by utility companies to estimate demand over coming days. Under web based
weather report application, some exciting features has been added such as
managing and handling exception error directly by the system which will be not
visible by the user to make it bug free. Multiple choice provided to the user by
2|Page
ANDROID WEATHER APP
which they can even select different weather channel as per their requirement
and interest in it. Its pattern recognition system will able to notify abut bad
weather condition previously before it begins with digital graphics is another
added advantage of this system. Once location selected by the user for its system
use, it will make it default location and remembered by the system so that users
do not have to change every time they use this system.
Problem Definition
There are a variety of weather mobile apps in Google Play. Those apps have great
features and functionalities to satisfy users. However, according to my research,
only a few of them have friendly user interface and human centered interactions,
which means that a lot of them might be difficult to be navigated even though
they provide enough functionalities. It is not convenient for new users.
Therefore, I would like to do improvements on weather mobile apps.
The objectives include:
The mobile app allows people to check out the weather in multiple cities
worldwide. The weather data is dynamic, which means that users can see the
weather anytime. The mobile app not only show the weather, temperature and
humidity, but it also uses various icons to represent the weather accordingly. It
will be easy to read and use.
Besides, the mobile app will have friendly user interfaces and human centered
interactions. Users can find the information they want in a short time and limited
clicks. It is easy to be navigated than other weather mobile apps in the market
Proposed Solution
Modern hand held devices such as smart phones and PDAs have become
increasingly powerful in recent years. Dramatic breakthroughs in processing
power along with the number of extra features included in these devices have
opened the doors to a wide range of commercial possibilities. In particular. most
cell phones regularly include cameras. processors comparable to PCs from only a
few years ago. and internet access. however. even with all these added abilities.
there are few applications that allow much passing of the environmental
3|Page
ANDROID WEATHER APP
information and location based services. As mobile devices become more like PCs
they will come to replace objects we tend to carry around such as checkbooks.
credit cards. cameras. planners. mp3 players. etc. In short. we will be using them
to accomplish our daily tasks. One application that falls into this category is the
Restaurant Finder Application developed for the Google Android Phones. The
prime objective of “weather Application" is to create a full fledged Android
application which could locate the location of the user.
System Synthesis
4|Page
ANDROID WEATHER APP
MINIMUM REQUIREMENTS:
5|Page
ANDROID WEATHER APP
Literature Survey
Introduction to Android
The Open Handset Alliance (OHA), a group of more than 30 technology and
mobile companies, was formed in 2007 to foster creativity and innovation in the
mobile arena. This group includes members like Sprint, T-Mobile, Intel, Broadcom,
Motorola, Samsung, Google, eBay, amongst others.
The main motive of this move was to facilitate openness in mobile software and
thus give customers a diversified software base which is not only less expensive
but also convenient and easy to use. The Android platform has emerged from
such a move. Android is an Operating System that is designed to be used with a
variety of handsets that will be launched in the second half of 2008.
Currently an SDK is hosted by Google, which is a leading player in the initiative.
This SDK allows creation of various Java based programs by using a special Eclipse
plug-in that interfaces with the kit. Android is not only an OS but also includes a
middleware and an array of applications for the users. Some of the supported
features are – a Dalvik Virtual Machine, built in browser and database support,
media, camera, GPS, map and other features.
Android
Android is a mobile operating system running on the Linux kernel. It was initially
developed by Android Inc., a firm later purchased by Google, and lately by
AITS Meet Me Here
Chirag M. Nagariya(095020693009) Page 87 87
the Open Handset Alliance. It allows developers to write managed code in the
Java language, controlling the device via Google-developed Java libraries. The
unveiling of the Android distribution on 5 November 2007 was announced with
the founding of the Open Handset Alliance, a consortium of 47 hardware,
6|Page
ANDROID WEATHER APP
7|Page
ANDROID WEATHER APP
From the weather patterns, a number of methods are used to know the
future state of atmosphere, a job called Weather Forcasting.
A Weather Forecasting is simply a scientific estimate of future weather
condition.
Weather condition is the state of the atmosphere at a given time
expressed in terms of the most significant weather variables.
The significant weather variables being forecast differ from place to
place.
To make weather forecast in forecasting the weather , ameteorologist
must at least know something above the existing weather condition
over a large area before he can make a reliable forecast .
The accuracy of his forecast depends largely upon his knowledge of the
prevailing weather conditions over a very wide area.
8|Page
ANDROID WEATHER APP
Surface Map:
The Surface Map are made four times daily at twelve-
hourly interval.
The distribution patterns of precipitation and cloudiness
can also be delineated.
Upper-air Map:
There are Five standard levels/steps of the upper air
maps that are constructed twice daily at twelve –hourly
interval :
Observation :
Sun, rain, snow, wind... we can't escape the weather, but
we can prepare for it if we know what is coming.
Observing the daily weather is part of a regular routine for
many of us, helping us decide what to wear and which
activities we will do each day. Similar observations of
atmospheric conditions are also required by
meteorologists to develop those weather forecasts with
which we are all familiar.
9|Page
ANDROID WEATHER APP
Observation methods
Temperature, humidity, precipitation, air pressure, wind speed,
and wind direction are key observations of the atmosphere that
help forecasters predict the weather. These same factors have
been used since the first weather observations were recorded.
However, the types and quality of weather instruments and the
methods of analyzing observations have changed significantly.
Basic weather observation instruments include thermometers, rain
gauges, barometers, and anemometers (wind speed meters).
Examples of more sophisticated equipment are wind profilers,
weather balloons (radiosondes) Doppler radar, and satellites. Even
with the highly technical equipment available, human
observationsoffsite link still provide important information about
10 | P a g e
ANDROID WEATHER APP
Weather is very difficult to predict. That’s because it’s very complex, and many factors are involved.
Slight changes in even one factor can cause a big change in the weather. Still, certain “rules of thumb”
generally apply. These “rules” help meteorologists forecast the weather. For example, low pressure is
likely to bring stormy weather. So if a center of low pressure is moving your way, you can expect a
storm.
People often complain when the weather forecast is wrong. Weather forecasts today, however, are
much more accurate than they were just 20 years ago. Scientists who study and forecast the weather
are called meteorologists. How do they predict the weather?
The first thing they need is data. Their data comes from various instruments.
Weather Instruments
Weather instruments measure weather conditions. One of the most important conditions is air
pressure, which is measured with a barometer (Figure below). There are also a number of
other commonly used weather instruments (Figure below):
11 | P a g e
ANDROID WEATHER APP
The greater the air pressure outside the tube, the higher the mercury rises inside the tube. Mercury can
rise in the tube, because there’s no air pressing down on it.
12 | P a g e
ANDROID WEATHER APP
13 | P a g e
ANDROID WEATHER APP
Using Computers
What do meteorologists do with all that weather data? They use it in weather models. The models
analyze the data and predict the weather. The models require computers. That’s because so many
measurements and calculations are involved.
In this analyse the weather data by different-different weather tool and collect all data and plot in
weather forecasting system.
Analysis of Weather Maps , Satellite and Radar Imageries and Other Data
/Prognosis or forecast
Formulation of Forecast
14 | P a g e
ANDROID WEATHER APP
The system is designed using the Object Oriented architectural style. It is also called Abstract Data Type
(ADT). This style includes encapsulating data representations and their associated operations in abstract
data type. The overall architecture is a client server using the J2EE framework. The system consists of
the Client component, Web component, Business component and Database component.
Components
The various components of the architecture are
a. Input Module – This module contains the html and JSP pages which take input the search
keywords and URL and descriptor pairs to be added to the database. The JSP pages also validate the
input search string. This module also takes Cleanup request from a html page for cleaning up URL,
descriptor pairs and the corresponding circularly shifted lines.
b. Add Kwic Index Module – This module is responsible for creating KWIC indices for adding the
descriptors of the URLs input. This module contains the following modules for creating sorted circularly
shifted lines for the descriptors input.
1. Line storage module – This module is responsible for storing the lines accepted into the
system. It has the interfaces to get the input lines stored. It also stores the URL for the
corresponding descriptor.
2. Circular Shift Module - This is the core module of the Add Kwic Index module which
actually produces the circularly shifted lines from the input line. This also eliminates the
lines generated which starts with a noise word.
3. Sorter Module – This module sorts the generated lines in alphabetic order. The module
then calls the DBHelper module’s method for inserting records into the database.
c. Search Module - This module is called when the user wishes to search for URLs using
keywords. The input keywords are parsed and SQL query is built according to the search string given
with AND, OR, NOT operators. It calls the DBHelper module’s methods for fetching the records.
d. CleanUp Module – This module handles the cleanup request given by the user. It creates SQL
query for getting URLs older than 3 minutes. And then creates SQLs for deleting the URL, descriptors
pairs and corresponding circularly shifted lines from the database. It calls the DBHelper module’s
methods for deleting the records.
e. DBHelper Module – This module acts as interface to the database. It has methods to query
the 2 tables – URLMaster and CSDescriptors for fetching records, inserting and deleting records.
f. Output Module – This module consists of the JSP pages which output the search results and
success messages on adding URL, Descriptors and cleaning DB.
15 | P a g e
ANDROID WEATHER APP
DESIGN :-
LOOKS:-
16 | P a g e
ANDROID WEATHER APP
17 | P a g e
ANDROID WEATHER APP
18 | P a g e
ANDROID WEATHER APP
Actor
Regional based rainforecast
Rain prediction
19 | P a g e
ANDROID WEATHER APP
Main() -Data
-decomposition Attribute
-Decomposition Value
- children
-parent
-Tree Node()
Login
Parse Tree
User id Frm Neural
Password
- attributes
num Epochs - Num _Attrs
num inputs - used Attributes
Check user()
Num hidden -root
Show u I ()
-Attribute Names
-Domains
Int weights()
Weight Changes IH()
Calc over all error()
Calc net() - Read Data()
- get symbol value() Data Point
-create Decision tree()
-get all values()
- Print Tree() -Attributes
-Get subset()
-Data points()
20 | P a g e
ANDROID WEATHER APP
Generate code.
Model code (reverse engineering).
Provide a focus for all the other diagrams.
22 | P a g e
ANDROID WEATHER APP
Activity Diagram:-
23 | P a g e
ANDROID WEATHER APP
24 | P a g e
ANDROID WEATHER APP
The natural forces that drive the weather do not recognise national
boundaries. Therefore meteorological observations spanning countries
and continents are required. International data exchange underpins
operational weather forecasting – MSS routinely exchange data with
other meteorological centres around the world through a dedicated
global telecommunications system.
Meteorological observations on land, at sea and in the atmosphere are made and
exchanged internationally every day.
25 | P a g e
ANDROID WEATHER APP
26 | P a g e
ANDROID WEATHER APP
27 | P a g e
ANDROID WEATHER APP
28 | P a g e
ANDROID WEATHER APP
Description
Intensity
Puddles are slow to form, and there is no or slow
• Light (or Slight) accumulation of
water
Puddles form rapidly,, and some spray visible over hard
• Moderate surfaces
Rain/showers falling in sheets with misty spray over hard
• Heavy surfaces.
Can cause flash floods.
Duration
Rain or showers occurring at irregular, infrequent
• Occasional intervals.
29 | P a g e
ANDROID WEATHER APP
a) Sequence Diagram:-
Sequence diagrams are used to demonstrate the behavior of
objects in a use case by describing the objects and the messages
they pass. The diagrams are read from left to right and
descending. Here first user interact with New Weather which
send message to login, n shows NN GUI. After that weight
initialize to frm Neural. Frm Neural send message to Parse Tree
which send message to Tree Node. and finally Parse Tree send
message to Data Point. At last Parse Tree generate output.
The sequence diagram is used primarily to show the interactions
between objects in the sequential order that those interactions
occur. Much like the class diagram, developers typically think
sequence diagrams were meant exclusively for them. However, an
organization's business staff can find sequence diagrams useful to
communicate how the business currently works by showing how
various business objects interact. Besides documenting an
organization's current affairs, a business level sequence diagram
can be used as a requirements document to communicate
requirements for a future system implementation. During the
requirements phase of a project, analysts can take use cases to
the next level by providing a more formal level of refinement.
When that occurs, use cases are often refined into one or more
sequence diagrams.
An organization's technical staff can find sequence diagrams
useful in documenting how a future system should behave. During
the design phase, architects and developers can use the diagram
to force out the system's object interactions, thus fleshing out
overall system design.
30 | P a g e
ANDROID WEATHER APP
2: CheckUser( ) 3: ShowNNGUI( )
4:initWeights( )
5: calcNet( )
6:
calcOverallError( )
7: 8:
readData( ) TreeNode( )
9: DataPoint( )
10:getAllValues( )
11: printTree( )
12: GenrateOutput( )
31 | P a g e
ANDROID WEATHER APP
b) Collaboration Diagram-
The second interaction diagram is
collaboration diagram. It shows the object organization as shown
below. Collaboration diagram shows the relationship between
objects and the order of messages passed between object. The
objects are listed as icons and arrows indicate the messages being
passed between objects. The numbers next to the messages are
called sequence numbers. As the name suggests, they show the
sequence of the messages as they are passed between the
objects.
32 | P a g e
ANDROID WEATHER APP
Conclusion
This project was first experience for us in the software industries; hence it
possesses very much importance in our career. We learnt basics of software
development Life Cycle‟ during our stay at “shiats”. We cane across important
documents of projects and get idea about importance of documentation in
software industries.
As the group follows the proper way to the project, it was an experience of
systematically going through the project phases, planning the project and
implementing the same. Since the requirements of the project were clearly
fabricated, the first step was modularization of application.
weather is a type of Internet and Location Based Service application, which
gives facilities to retrieve weather locations.
From this project we came to know how to work with Surviving technologies
with in deadline and work with team structure. We came to know what to do and
what not to do to make project unbeaten. It also gives me benefits to understand
how real worlds Project carried out in IT Firm.
I worked with some of the Team Leaders who were having lots of experience in
the same field. I got idea about their responsibilities and their working attitude.
So overall it was greater learning experience for us.
33 | P a g e
ANDROID WEATHER APP
Bibliography
o http://www.developer.android.com
o www.vogella.com
o http://www.stackoverflow.com
o https://www.github.com
34 | P a g e