Your SlideShare is downloading. ×
Simple Android Project (SAP)... A Test Application
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Simple Android Project (SAP)... A Test Application

4,420
views

Published on

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.

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.

Published in: Technology

0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,420
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
324
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Simple Android Project (SAP) 17.12.2012
  • 2. Developed By…… Under guidance of Dr. Siuli Roy Swapan Aritra Priyank a
  • 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?
  • 6. Software Requirement Specification
  • 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
  • 8. Now, Let’s Have A Look At… System Features
  • 9. Functional Requirements  Android operating system on the Smartphone.  The target device should be sound enabled Start Up
  • 10. Menu Functional Requirements  Android operating system on the Smartphone.
  • 11. Functional Requirements  Android operating system on the Smartphone. Click Counter
  • 12. Stop Watch Functional Requirements  Android operating system on the Smartphone.
  • 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.
  • 15. Functional Requirements  Android operating system on the Smartphone. Album Viewer
  • 16. UI Tested on:  Android emulator version 2.2  MB525 Motorola Defy External Interface Requirements Hardware Requirement:  A Camera  600 MHz Processor  256 Mb+ RAM Software Requirement:  Android 2.2(Foryo) or Higher  Setting  Application  Unknown Sources - Checked
  • 17. Design How We Planned The Application
  • 18. UserModules… Bottom-Up Composition
  • 19. Level-0 DFD
  • 20. Level-1 DFD
  • 21. The Basics of Android and The Building Blocks of It’s Code It’s all about Coding!
  • 22. Building Blocks of Android Code
  • 23. It’s time to examine Simple Android Project Coding @ SAP Code by Code
  • 24. Start Up! Thread Thread timer=new Thread(){ Public void run(){ try{ sleep(5000); } catch(InterruptedException e){ e.printStackTrace(); } finally{ Intent startingPoint=new Intent("com.example.asp.Menu"); startActivity(startingPoint); } } };
  • 25. Start Up! Media Player MediaPlayer MediaPlayermySong. @Override Protected void onCreate(Bundle savedInstanceState) { … mySong=MediaPlayer.create(StartUp.this, R.raw.music); mySong.start(); … } @Override Protected void onPause() { // TODO Auto-generated method stub super.onPause(); mySong.release(); finish(); }
  • 26. The Start-Up
  • 27. Camera Initialization ImageButton ib; Button b; ib=(ImageButton)findViewById(R.id.ibTakePic); b=(Button)findViewById(R.id.bSetWall); b.setOnClickListener(this); ib.setOnClickListener(this);
  • 28. Camera OnClick() Method Public void onClick(View v) { // TODO Auto-generated method stub switch(v.getId()){ case R.id.bSetWall: WallpaperManager myWallpaperManager=WallpaperManager.getInstance(ge tApplicationContext()); try { myWallpaperManager.setBitmap(bmp); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } break; case R.id.ibTakePic: i=new Intent(android.provider.MediaStore.ACTION_IMAGE_CAP TURE); startActivityForResult(i,cameraData); break; } }
  • 29. Camera Setting Picture on ImageView Protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub super.onActivityResult(requestCode, resultCode, data); if(resultCode == RESULT_OK){ Bundle extras = data.getExtras(); bmp=(Bitmap)extras.get("data"); iv.setImageBitmap(bmp); } }
  • 30. Camera App
  • 31. Testing The quality of SAP
  • 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); } } }
  • 35. Thank You!