Simple Android Project is a test application, trying to play with the Android framework and UI. Its a collection of few basic applications, coupled in a Menu.
3. Our project was “Study the
Programming Environment
of Android Based Smart
Phone and Build A Test
Application.”
But We thought of
Real life application..
Lets Start With our Objective…
4. So, We created…
Click Counter Application
Stop Watch Application
Camera Application
Email Application
Album Viewer
5. » Mobility
» Power of computer in mobile
» Most popular Mobile OS from 2011
» Touch Screen Interface
» Multitasking
WHY ANDROID?
7. Explains the functional features, design constraints and related
considerations such as performance characteristics.
This application can run anonymously in any Android based
Smartphones.
Software Requirement and Specification
Scope
Purpose
Permission
• SET_WALLPAPER permission
• INTERNET permission
13. Functional Requirements
Android operating system on the
Smartphone.
User should use Android default
camera.
User should have permission to
SET_WALLPAPER of system tools
permission set.
Camera
14. Email
Functional Requirements
Android operating system on the
Smartphone.
User must provide a valid e-mail Id.
It should take permission to use
internet.
32. Black Box Testing
Case Name: Sending an e-mail without a recipients
Description: Input the values of all fields except e-mail address
Action: E-mail address=””
Actual Result: e-mail can’t be sent
Expected Result: Without an recipients we can’t send the e-mail
Message: Please enter an e-mail Id
Case Name: Sending an e-mail with faulty e-mail id
Description: Input invalid values(putting @ at the last) in email address
Action: E-mail address=”iamswapangmail.com@”
Actual Result: Mail has not been sent
Expected Result: Mail will not be sent
Message: Please enter a valid e-mail Id
33. Black Box Testing
Case Name: Sending an e-mail with faulty e-mail id
Description: Input invalid values( there is no . after @) in email address
Action:
E-mail address=”iamswapan@gmailcom”…………… and click on
send e-mail button
Actual Result: Mail has not been sent
Expected Result: Mail will not be sent
Message: Please enter a valid e-mail Id
Case Name: Sending an e-mail with faulty e-mail id
Description: Input invalid values (without @ )in email address
Action:
E-mail address=”iamswapangmail.com”…………… and click on
send e-mail button
Actual Result: Mail has not been sent
Expected Result: Mail will not be sent
Message: Please enter a valid e-mail Id
34. public void onClick(View v) {
// TODO Auto-generated method stub
switch(v.getId()){
case R.id.bStart:
int stoppedMilliseconds = 0;
String chronoText =
mChronometer.getText().toString();
String array[] =
chronoText.split(":");
if (array.length == 2) {
stoppedMilliseconds =
Integer.parseInt(array[0]) * 60 * 1000
+ Integer.parseInt(array[1]) *
1000;
} else if (array.length == 3) {
stoppedMilliseconds =
Integer.parseInt(array[0]) * 60 * 60 * 1000
+ Integer.parseInt(array[1]) * 60 * 1000
+ Integer.parseInt(array[2]) * 1000;
}
White Box Testing
mChronometer.setBase(SystemClock.elapsedRealti
me() - stoppedMilliseconds);
mChronometer.start();
break;
case R.id.bStop:
mChronometer.stop();
break;
case R.id.bReset:
mChronometer.setBase(SystemClock.ela
psedRealtime());
mChronometer.setEnabled(false);
}
}
}