ANDROID APPLICATION
DEVELOPMENT
Submitted By-
Mayank Bhatt
SubmittedTo-
Ms. Niharika Joshi
Content
• Bugs
• Debugging
• Android Studio debugging tools
• What can you do?
• Why should you test your app?
• Types of testing
• Levels of testing
• Tests in project
Bugs
• Incorrect or unexpected result, wrong values
• Crashes, exceptions, freezes, memory leaks
• Causes
• Human design or implementation error
• Software fault built in libraries
• Hardware fault or limitation
Debugging
• Find and fix errors
• Correct unexpected result or behaviour
• Unit test help identify bugs and prevent regression
• User testing help identify interaction bugs
Android studio debugging tools
Android Studio has tools that
• Identify problems
• Find where in the source code the problem is created
What you can do?
• Run in debug mode with attached debugger
• Set and configure breakpoints
• Halt execution at breakpoint
• Inspect execution stack frames and variable values
• Change variable values
• Step through code line by line
• Pause and resume a running program
Why should you test your app?
• Find and fix issues early
• Less costly
• Takes less effort
• Cost to fix bugs increases with time
Types of testing
• Installation, Compatibility, Regression, acceptance
• Performance, scalability, usability, security
• User interface and interaction test
• Automated UI testing tools
• Instrumented testing
Levels of testing
• Component
• Integration
• Protocol
• System
Tests in project
Android Studio creates three source tests for a project
• Main- code and resources
• Test- local unit test
• AndroidTest- instrumented test
Android application development part2

Android application development part2

  • 1.
    ANDROID APPLICATION DEVELOPMENT Submitted By- MayankBhatt SubmittedTo- Ms. Niharika Joshi
  • 2.
    Content • Bugs • Debugging •Android Studio debugging tools • What can you do? • Why should you test your app? • Types of testing • Levels of testing • Tests in project
  • 3.
    Bugs • Incorrect orunexpected result, wrong values • Crashes, exceptions, freezes, memory leaks • Causes • Human design or implementation error • Software fault built in libraries • Hardware fault or limitation
  • 4.
    Debugging • Find andfix errors • Correct unexpected result or behaviour • Unit test help identify bugs and prevent regression • User testing help identify interaction bugs
  • 5.
    Android studio debuggingtools Android Studio has tools that • Identify problems • Find where in the source code the problem is created
  • 6.
    What you cando? • Run in debug mode with attached debugger • Set and configure breakpoints • Halt execution at breakpoint • Inspect execution stack frames and variable values • Change variable values • Step through code line by line • Pause and resume a running program
  • 7.
    Why should youtest your app? • Find and fix issues early • Less costly • Takes less effort • Cost to fix bugs increases with time
  • 8.
    Types of testing •Installation, Compatibility, Regression, acceptance • Performance, scalability, usability, security • User interface and interaction test • Automated UI testing tools • Instrumented testing
  • 9.
    Levels of testing •Component • Integration • Protocol • System
  • 10.
    Tests in project AndroidStudio creates three source tests for a project • Main- code and resources • Test- local unit test • AndroidTest- instrumented test

Editor's Notes

  • #5 All of the views in a window are arranged in a single tree. You can add views either from code or by specifying a tree of views in one or more XML layout files. There are many specialized subclasses of views that act as controls or are capable of displaying text, images, or other content. Once you have created a tree of views, there are typically a few types of common operations you may wish to perform: Set properties: for example setting the text of a TextView. The available properties and the methods that set them will vary among the different subclasses of views. Note that properties that are known at build time can be set in the XML layout files. Set focus: The framework will handle moving focus in response to user input. To force focus to a specific view, call requestFocus(). Set up listeners: Views allow clients to set listeners that will be notified when something interesting happens to the view. For example, all views will let you set a listener to be notified when the view gains or loses focus. You can register such a listener using setOnFocusChangeListener(android.view.View.OnFocusChangeListener). Other view subclasses offer more specialized listeners. For example, a Button exposes a listener to notify clients when the button is clicked. Set visibility: You can hide or show views using setVisibility(int). Note: The Android framework is responsible for measuring, laying out and drawing views. You should not call methods that perform these actions on views yourself unless you are actually implementing a ViewGroup.
  • #11 Whatever you see on screen all the ui they all are presented by activity. It can be a complete window , floating window