文件名称:MyService
介绍说明--下载内容均来自于网络,请自行研究使用
本节我们学习Service,如果把Activity比作是前台程序,那么Service就是后台程序,Service的整个生命周期只会在后台执行。它一般没有用户操作界面,运行于系统中不容易被用户发觉,可以用来开发如监控之类的程序。与Activity一样,Service也通过Intent来调用。-In this section, we study the Service, if the Activity to a foreground program, so the Service is a daemon, the whole lifecycle of the Service will only be executed in the background. It usually no user interface and runs on system is not easy to be realized, which can be used to develop such as monitoring program. Like the Activity, the Service is invoked by Intent.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyService\.classpath
.........\.project
.........\AndroidManifest.xml
.........\bin\AndroidManifest.xml
.........\...\classes\com\leverage\customservice\BuildConfig.class
.........\...\.......\...\........\.............\MainActivity$1.class
.........\...\.......\...\........\.............\MainActivity$MyOnClickListener.class
.........\...\.......\...\........\.............\MainActivity.class
.........\...\.......\...\........\.............\MyService.class
.........\...\.......\...\........\.............\R$attr.class
.........\...\.......\...\........\.............\R$drawable.class
.........\...\.......\...\........\.............\R$id.class
.........\...\.......\...\........\.............\R$layout.class
.........\...\.......\...\........\.............\R$menu.class
.........\...\.......\...\........\.............\R$string.class
.........\...\.......\...\........\.............\R$style.class
.........\...\.......\...\........\.............\R.class
.........\...\classes.dex
.........\...\jarlist.cache
.........\...\MyService.apk
.........\...\res\drawable-hdpi\ic_action_search.png
.........\...\...\.............\ic_launcher.png
.........\...\...\.........ldpi\ic_launcher.png
.........\...\...\.........mdpi\ic_action_search.png
.........\...\...\.............\ic_launcher.png
.........\...\...\.........xhdpi\ic_action_search.png
.........\...\...\..............\ic_launcher.png
.........\...\resources.ap_
.........\gen\com\leverage\customservice\BuildConfig.java
.........\...\...\........\.............\R.java
.........\ic_launcher-web.png
.........\libs\android-support-v4.jar
.........\proguard-project.txt
.........\project.properties
.........\res\drawable-hdpi\ic_action_search.png
.........\...\.............\ic_launcher.png
.........\...\.........ldpi\ic_launcher.png
.........\...\.........mdpi\ic_action_search.png
.........\...\.............\ic_launcher.png
.........\...\.........xhdpi\ic_action_search.png
.........\...\..............\ic_launcher.png
.........\...\layout\main.xml
.........\...\menu\main.xml
.........\...\values\strings.xml
.........\...\......\styles.xml
.........\...\......-v11\styles.xml
.........\...\.........4\styles.xml
.........\src\com\leverage\customservice\MainActivity.java
.........\...\...\........\.............\MyService.java
.........\bin\classes\com\leverage\customservice
.........\...\.......\...\leverage
.........\gen\com\leverage\customservice
.........\src\com\leverage\customservice
.........\bin\classes\com
.........\...\res\drawable-hdpi
.........\...\...\drawable-ldpi
.........\...\...\drawable-mdpi
.........\...\...\drawable-xhdpi
.........\gen\com\leverage
.........\src\com\leverage
.........\bin\classes
.........\...\res
.........\gen\com
.........\res\drawable-hdpi
.........\...\drawable-ldpi
.........\...\drawable-mdpi
.........\...\drawable-xhdpi
.........\...\layout
.........\...\menu
.........\...\values
.........\...\values-v11
.........\...\values-v14
.........\src\com
.........\assets
.........\bin
.........\gen
.........\libs
.........\res
.........\src
MyService