20155217 Experiment Report of Java object-oriented programming

Source: Internet
Author: User
Tags winsxs folder

20155217 Experiment Report of Java object-oriented programming experiment 1. Develop simple Android apps and deploy tests based on Android Studio 2. Understanding the use of Android, components, layout Manager 3. Mastering the event handling mechanism in Android. Second, the installation of software problems

1. Install this version, always in the decompression installation to One-tenth error occurred, not normal installation, in the other students found that there is no similar problem, but found another way:

(1) Create a shortcut to the installed version

(2) Modify the shortcut mode, right click on the property

(3) To run the shortcut, you can install it successfully.

2. After successful installation, in the discovery of a lot of students to build the missing, I made the software to my prompt update:

Beginning to feel that the update is not useful, but actually found that it is helpful to directly solve the problem of missing Gradle package, and add more gradle3.3 package.

3. During the update process, there is a series of problems, my installation directory is set in the E-disk, but in the process of updating, my C disk less than 8 g of space, for this I began to clean up the C drive, because my computer itself C disk space is small, I do not know is not Lenovo company brain residue, to C disk so big point place, They put the price slightly fine-tuned higher, the C-volume expansion of dozens of G also OK, but I usually have a good habit C disk and there is not too many non-system things, and then a long time to clean up the C-disk experience, I began to clean the C drive.

(1) Software cleanup, now like 360 or other butler software can indeed go to clean up the garbage, but for clean C drive They basically helpless, the following to recommend a professional Clean C disk tool, Cclean divided into two versions, one of the family version is completely free, This tool is useful for cleaning up Windows updates, which can be downloaded from the Web.

(2) using Windows to clean up the system tools, prompted, in the system file cleanup, be sure to choose the Windowsold this folder, which contains a lot of previous system files

(3) Enter the following command in the pop-up window. (note space), this is the C disk you do not need to remove some of the updates, the update is generally in the WinSxS folder, there are good and bad, if manual cleanup, may cause system components missing caused the system crashes, so the command line to delete, This method is good for most people can sometimes clean up dozens of G, but there will be a disadvantage, that is, after the cleanup is completed, the system will be encapsulated, that is, can not uninstall any patches, if the previous installation of the patch is incompatible with the phenomenon, then the change will be particularly troublesome, Because this command will also delete your updated records, so it is not recommended to use this instruction, I cleaned up 15 g space for the first time when I used this instruction.

Dism/online/cleanup-image/startcomponentcleanup/resetbase

(4) Use your own script to clean up

@echo Offecho is cleaning up the system junk file, please wait a moment ... del/F/S/q%systemdrive%\*. TMP del/F/S/q%systemdrive%\*. _MP del/F/S/q%systemdrive%\*. Log del/F/S/q%systemdrive%\*. GID del/F/S/q%systemdrive%\*. CHK del/F/S/q%systemdrive%\*. Old del/F/S/q%systemdrive%\recycled\*.*del/F/S/q%windir%\*. Bak del/F/S/q%windir%\prefetch\*.*Rd/s/q%windir%\temp & MD%windir%\temp del/f/q%userprofile%\cookies\*.*del/f/q%userprofile%\recent\*.*del/F/S/Q"%userprofile%\local settings\temporary Internet files\*.*"del/F/S/Q"%userprofile%\local settings\temp\*.*"del/F/S/Q"%userprofile%\recent\*.*"echo Clear system garbage complete! Echo. & Pause

Put the above code in Notepad, then modify the file with the suffix. bat and then run it

(5) Advice on C-plate to everyone

Everyone in the future work and study, we must develop as far as possible to install the software on the other disk, the system disk separate out.

Third, the experimental steps

Installation test for 1.Android Stuidio:

Refer to "Java and Android Development Learning Guide", chapter 24th

    • Install Android Stuidio

    • To complete Hello world, ask to modify the contents of the Res directory, Hello world to display its own number, submit code to run and

    • Learn Android Stuidio Debug app

2.Activity Test:

Refer to "Java and Android Development Learning Guide", 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
    • Submit code to run and, to have a number watermark

3.UI Test:

Refer to "Java and Android Development Learning Guide", Chapter 26th

    • Build the project, run the textbook related code
    • Modify the code to let the toast message display its own learning number information
    • Submit code to run and connect, to have a number watermark

4. Layout test:

Refer to "Java and Android Development Learning Guide", Chapter 27th

    • Build the project, run the textbook related code
    • Modify the layout so that the P290 page interface is different from the textbook
    • Submit code to run and, to have a number watermark

5. Event Processing test:

Refer to "Java and Android Development Learning Guide", chapter 28th

    • Build the project, run the textbook related code
    • Commit code to run and

Iii. problems encountered in the experimental process and the outcome plan
    • Issue 1: When I first chose the Android virtual machine, I chose Nexus 5, "waitting for target device coming online" always appears when running the HelloWorld project
    • Issue 1 Solution: replace virtual machine with Nexus 5X

    • Question 2: How do I display a toast message?
    • Issue 2 FIX: Modify Mainactivity.java
Package Com.java.w.helloworld;Import Android.support.v7.app.appcompatactivity; import Android.os. bundle; import android.widget. toast;public class mainactivity extends  appcompatactivity { @Override protected void OnCreate (bundle savedinstancestate) {super.oncreate (savedinstancestate); Setcontentview (r.layout.activity_main); toast.maketext (this,  "20155201 李卓雯" , toast. length_long). Show (); }} 
Toast.makeText(this, "你想显示的内容", Toast.LENGTH_LONG).show();

Five, the experiment experience and summary

I started the Thursday afternoon to do the experimental content, I heard that many students encountered a variety of problems, I run the first problem is that the project is not open, query information and roommate together to solve, now the project opened quickly, back in the completion of the remaining experimental steps of the basic did not encounter any problems, According to the textbook code to knock and modify, can quickly complete the experimental content. I think the virtual machine is very interesting, also tried to connect the external Android device for debugging, feel this software in the future when the project can be used as the basis for debugging software, will take time to delve into the next.

Steps Time Consuming percentage
Demand analysis 10min 11%
Design 20min 22%
Code implementation 20min 22%
Test 10min 11%
Analysis Summary 30min 33%

20155217 Experiment Report of Java object-oriented programming

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.