20182309 2019-2020-1 “Data Structure and Object Design” Experiment 5 Report

20182309 2019-2020-1 “Data structure and object-oriented programming” experiment five report

Course: “Program design And Data Structure”
Class: 1823
Name: Dong Qipeng
Student ID: 20182309
Experiment Teacher: Wang Zhiqiang
Experiment Date: October 14, 2019
Compulsory/Elective: Compulsory

1. Experimental content

  • 1. Android Stuidio installation test
  • 2. Activity test
  • < li>3.UI test

  • 4. Layout test
  • 5. Event handling test

2. Experimental process and results

  • Install Android Stuidio and modify the text to output content other than Hello World.
    Share a picture
  • Use onTouch, startactivity to start another activity
  • Common attributes of xml layout
    Share pictures
  • After changing the UI layout
    Share pictures

    Experiment Five Code

    3. Problems encountered during the experiment and the solution process

  • Problems 1: The new version of Android Studio cannot find R.menu
  • Problem 1 Solution: Create the res/menu folder and create the menu_main file.
  • Question 2: Unable to call another activity
  • Solution to question 2: Only the text can be called, and the xml file is incomplete, it can be run after completion< /p>

Other

  • Android is a relatively basic thing, just a simple code stacking, multiple activities call each other< /li>
  • Debugging of android studio is more troublesome

Reference Materials

  • 《Java Programming and Data Structure Tutorial (Second Edition)”

  • “Java Programming and Data Structure Tutorial (Second Edition)” learning guide

  • < p>“R.menu error in android development”

  • “Android onCreateOptionsMenu() Create Menu Menu Details”

Leave a Comment

Your email address will not be published.