Experiment 7 Bindservice Analog communication

Source: Internet
Author: User

Lab Report

Course Name

Mobile Internet development based on Android platform

Date of experiment

2016/4/22

Name of the experimental project

Bindservice Analog Communication

Location of the experiment

General Laboratory

Type of experiment

-Verification Type √ design type-comprehensive type

Hours

2

The purpose and requirements of the experiment (the knowledge points which are involved in this experiment and are required to be mastered)

1. Achieve two-way communication between the start-up and Bindservice

2. Implement a data transfer from the start-up to the bindservice end;

3. Realize the use of Bindservice service to play the music in the project source file;

4. Implement the "increase" and "lower" two buttons on the boot side to control the audio volume size.

5. Implement the "Pause" button on the boot side to control the audio pause playback.

second, the experimental environment (the hardware equipment and related software used in this experiment)

(1) PC Machine

(2) Operating system: Windows XP

(3) Software: Eclipse, jdk1.6,android Sdk,adt

Third, the contents and steps of the experiment

1) Add Musicsetting.xml file

2) New Musicsetting.java class

3) Register Musicsetting.java class

4) New Boundservice.java class

Four, the experimental results (the experimental source program list and operating results or experimental conclusions, experimental design drawings)

code:

mainactivity section code:

 

musicsetting Section Code:

 

boundservice part code:

 

run Result: ()

Five, Experimental summary (analysis of the results of the experiment, experience and improvement of experimental ideas)

This experiment feels very difficult, in the background music because forgot to jump to boundservice start service, so music can't play; in the process of mute control volume, in the Internet to find a lot of examples but still do not understand, finally in the help of students finally completed the experiment. I still have a lot of things to do in this experiment, and I need to go on with practice.

Experimental reviews

Experimental results

Guide Teacher Signature: Date

Experiment 7 Bindservice Analog communication

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.