20172328 "Program design and data Structure" experiment four Android programming report

Source: Internet
Author: User

20172328 "Program design and data Structure" experiment four Android programming report

Program: Program design and data structure
Class: 1723
Name: Li Xinyu
Study No.: 20172328
Lab Teacher: Wang Zhiqiang teacher
Date of experiment: June 1, 2018
Compulsory Elective: compulsory

First, the contents of the experiment
    • Experimental 1:android stuidio installation test:
      Refer to the Java and Android Development Learning Guide (second Edition) (Epubit,java for Android 2nd), Chapter 24th:

Refer to Http://www.cnblogs.com/rocedu/p/6371315.html#SECANDROID, installing Android Stuidio
Finish Hello World, ask to modify the contents of the Res directory, Hello World to show their school number, the number of students before and after a student, submit code run and code cloud GIT link, no study number to deduct points
Learn Android Stuidio Debug app

    • Experimental 2:activity Test
      Refer to the Java and Android Development Learning Guide (second Edition) (Epubit,java for Android 2nd), Chapter 25th:

Build the project, run the textbook related code
Create thirdactivity, display your own number in thirdactivity, modify the code to let mainactivity start thirdactivity

    • Experimental 3:ui Test
      Refer to the Java and Android Development Learning Guide (second Edition) (Epubit,java for Android 2nd), Chapter 26th:

Build the project, run the textbook related code
Modify the code to let the toast message display its own learning number information

    • Lab 4: Layout test: Refer to the Java and Android Development Learning Guide (second Edition) (Epubit,java for Android 2nd), Chapter 27th:

Build the project, run the textbook related code
Modify the layout so that the P290 page interface is different from the textbook

    • Lab 5: Event Processing test: Refer to the Java and Android Development Learning Guide (second Edition) (Epubit,java for Android 2nd), Chapter 28th:

Build the project, run the textbook related code
Submit code to run and code cloud git link, to have a study number watermark, otherwise it will deduct points

Second, the experimental process and results
    • Experiment 1: Experiment 1 Follow the steps in the book to install and then create a new project, configure and then appear the beginning of the HelloWorld, in the layout layouts change the text in the box, so that the display of their own school number, the number of students before and after a student's study number.
    • Experiment 2: According to the Secondacrivitydemo project given in the book, revise it and then understand the code to be completed smoothly.

    • Experiment 3: Learn the production of small bubbles, write a line of code can be achieved.
    • Experiment 4: Make a simple change to the layout, set to let the above two boxes are vertically distributed.
    • Lab 5: Run the code on the book.

Iii. the problems encountered during the experiment and the process of solving them
  • 1. When I first started installing Anroid Studio, it was not a lot of mistakes, and then it turned out to be different from other people's interface, and the keys to run were gray.
  • Problem 1 Solution: At that time did not know how to solve, Baidu a bit, is my Gradle package did not import. So find the URL to download it, shun smooth to solve their own problems.
  • Question 2: Want to import the file, the result display failed, forget no, the approximate step is I this will cut down the figure.File —— New —— import Module
  • Problem 2 Solution: Go to the teacher to answer questions, but maybe he shook God, behind himself did not practice, so it can not be imported. The result of the search is

    Simply, open your studio, click on "File", "New" and "Import Project" in the top left corner, then find your code in the Directory selection screen that appears, the one above you, and see there's a build.gradle inside. , directly click on this ok,studio will help you directly generate the corresponding files, of course, you can also direct the entire code in, all the same.

  • Solution for Problem 2: I followed it, looked smooth, but still unable to import, the problem is a model one
    Kind, so repeatedly failed the rain classmate temporarily abandoned the advanced import method, obediently go to two folder copy, Paste, did a porter.
  • Question 3: May 30, 2018 evening time around 7 o'clock, is doing experiment 2 homework I open too many background process, so anroid Studio card died in my arms. I can't bear to close my laptop, abruptly open the task Manager to turn it off, and then open it when the small green Android is not, then wrapped a glimmer of fantasy, repeatedly open the screen, click the ellipsis box, but it is not my little green. I didn't know where the problem was. Run no, see Andriod small green directory. Search also can not find, consulted Wenbin Wang classmate, (? ′▽ ')?? ( Please do not ask me why not, then all panic, of course, is busy to solve the problem )
  • Solution for Issue 3: After Wenbin Wang classmate about two hours ( very grateful ) debugging, finally solved the problem. When I asked him about the process, he actually went through a two-hour patch and changed things a lot, so it's not a single-factor problem. There are many reasons, but the main thing is that when I turn off the process my profile is automatically detached, so I need to download it again or find my anroid studio.
  • Question 4: When I thought everything was ready to do a good experiment, I imported the code all red, like my mother made Macrobrachium nipponense into the boiling water seconds into red shrimp. Look carefully, R is red, is menu also red.

  • Solution for Problem 4: see Yo yo yo

(The above is my summary of the code run error in the 11-week summary, but because this week is a combination of experiments and books so it's the same, just put it on, don't be surprised Yo (#^.^#))

Iv. Other (sentiment, thinking, etc.)

Small app appears on the virtual phone, not excited is not possible, although the teacher said the experiment is very simple, but complex problems often appear, bored let me feel very flustered. It feels like a new knowledge structure that needs to be carefully pondered.

叹口气,继续走。
V. References
    • Blog Garden Homework Layout
    • Easy Tutorials
    • Java and Anroid Development Learning Guide (second Edition)

20172328 "Program design and data Structure" experiment four Android programming report

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.