Android Calculator With Math Functions
Android Calculator With Math Functions
Hibban Buhari
CST/12/COM/00325
Certification
This is to certify that the work in the project entitled Implementation of a
Basic Calculator with Scientific Functions in Android Mobile Devices by
Hibban Buhari is a SIWES Mini Project work carried out under my
supervision and guidance in partial fulfillment of the requirements for the
award of the degree of Bachelor of Computer Science.
S. H. Muhammad
ii
Acknowledgment
I would like to use this opportunity to express my humble gratitude to Mal.
S. H. Muhammad under whom I executed this project. His constant
guidance and willingness to share his vast knowledge made me understand
this project and its manifestations in great depths and helped me to
complete the assigned tasks.
I would like to thank all Faculty members and sta of the Department of
Computer Science, B.U.K for their generous help in various ways for the
completion of this work.
Hibban Buhari
iii
Abstract
Since ages, calculation has been one of the most important way to enable
human beings compute values in various distinct being it marketing,
accounting, e.t.c. Calculator plays vital role in the history of mankind
originating from the Abacus, to the invention of the first electronic
calculator by Blaise Pascal. This helps individuals and organization in
computing various number together.
iv
Table of Contents
Certification ............................................................................................ ii
Acknowledgment ................................................................................... iii
Abstract .................................................................................................. iv
Chapter 1 ................................................................................................. 1
Introduction ............................................................................................. 1
1.1
1.2
1.3
1.3.1
1.3.2
1.3.3
SQlite ....................................................................................... 4
1.3.4
1.3.5
1.3.6
1.3.7
1.4
Objective ........................................................................................ 7
Chapter 2 ................................................................................................. 8
General Description, Requirement Analysis and Specification ................ 8
2.1
Introduction .................................................................................... 8
2.2
2.3
2.4
2.5
Chapter 3 ............................................................................................... 11
Design & Implementation ...................................................................... 11
3.1
3.2
3.3
Implementation ............................................................................. 12
3.4
3.5
Chapter 4 ............................................................................................... 15
Conclusions and Future Work ................................................................ 15
4.1
Conclusion.................................................................................... 15
4.2
References ............................................................................................. 16
vi
Chapter 1
Introduction
Since ages, calculation has been one of the most important way to enable
human beings compute values in various distinct being it marketing,
accounting, e.t.c. Calculator plays vital role in the history of mankind
originating from the Abacus, to the invention of the first electronic
calculator by Blaise Pascal. This helps individuals and organization in
computing various number together.
1.1
What is Android?
1.2
The stack has several layers. The layers ranges from low level operating
system services that manages the device and its configurations up to
sample Applications like Phone Dialer, Contacts Database and Web
Browser. Android software also comes with a Software Developers Kit,
SDK, used to create Android Applications.
1.3
1.
2.
3.
4.
1.3.3 SQlite
Android OS contains the SQLite database management classes which is
used by an application to maintain its own private database. SQLite is a
relational database management system contained in C programming
library. It is mostly preferred as embedded database for local or client
storage in application software. It has many bindings to the programming
languages.
Android Linux Kernel also has some specific components. These are but
not limited to:
a. Android Linux Kernel includes built in power management to enable
mobile device run on battery power;
4
The Android libraries has built-in system C library handling process and
thread creation, mathematical computation, and memory allocation, also,
the System Libraries include:
i.
ii.
the Media Framework used for playing back Audio and Video files;
iii.
iv.
v.
In addition to the System Libraries, the layer also includes the Android
Runtime which supports writing and running Android applications.
The Android Runtime System has two main components i.e. the Core Java
Libraries and the Dalvik Virtual Machine.
These include:
Package Manager;
Window Manager;
View System;
Resource Manager;
Activity Manager;
Location Manager;
Notification Manager.
Application with his own 3rd party Application that he feels is a better
Application.
1.4
Objective
2.
Chapter 2
General Description, Requirement Analysis and Specification
2.1
Introduction
2.2
Product Perspective
2.3
General Constraints
1.
Hardware Constraints
2.
Software constraints
Any devices which can run Android Operating System. And the following
are the software constraints of the system.
2.4
Requirement Analysis
2.5
The functional requirements part discuss the functional behavior that should
be possessed by the system. Each requirement maps to a high level function
that transforms the given set of input data into output data.
Splash.xml
Description: The xml file containing the Splash Screen user interface
of the system. This activity runs for 5 seconds providing the user with
the devices date and time and calls the First Activity.
Splash.java
Description: The file containing the Java declaration and expressions
for the Splash.xml. The Splash.java is a class that extends the Activity
class inherits the FirstActivity and implements various methods
contained in the Activity class.
10
Chapter 3
Design & Implementation
The design phase emphasizes on the transformation of user requirements as
defined in the SRS document, into a form that is suitable for coding.
The preliminary design can be further divided into two sub categories
Function Oriented Software Design
Object Oriented Software Design
3.1
This design model can be represented by drawing the DFDs (Data Flow
Diagrams) for the given SRS document.
3.3
Implementation
The system developed contains Android application in its front end ie the
client side. The middle layer that connects the client side to the server side is
the Jason (JavaScript Object Notation) Parser that is primarily used to transmit
data between server and server application.
3.4
Android API
3.5
The application GUI is developed using the android SDK and the various
forms are as shown below.
13
14
Chapter 4
Conclusion and Future Work
4.1
Conclusion
The Calculator for mobile devices is a very effective tool which can be used
to a great extent. The system is portable and can be easily installed and used
on any mobile phones supporting Android OS.
The use of this system can result in a reduction of number of time spent
computing values. It also provides an interface which is easy to understand by
the users and greatly helps in adapting to the use of this system.
4.2
Future Work
The system can be further enhanced and several other functionalities can be
added. The system can be made to send result to an output file, generate log
and usage statistics, and can be made to retrieve the generated log activity.
The present system prints to the stack usage logs and statistics.
The system can also be enhanced by using voice recognition feature of the
Android.
15
References
Android Developers. (2014, December 6). Creating an Android Project.
Retrieved from Android Developers Training:
https://developer.android.com/training/basics/firstapp/creatingproject.html
Lars Vogel. (2014, December 28). Vogella. Retrieved from Android
Development: http://www.vogella.com
Murphy, M. L. (2009 - 2011). Android Programming Tutorials. United State
of America: CommonsWare.
Travis. (n.d.). Android Application Development Tutorial. Retrieved from
http://www.travis.com
16