Description: 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.
To Search:
File list (Check if you may need any files):
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