摘要
用户可以在免费手机平台Android上,开发各种对自身使用的APK应用文件,在开发应用程序过程中,程序员可以使用Service开发需在后台执行长时间运行操作,并且不提供用户界面的应用程序组件。重点讲述视力保护程序使用Service的过程,该过程首先定义TimeService类和TimeActivity类,关键是在AndroidManifest.xml文件中增加Activity和Service配置,以此调用TimeService的过程而启动服务和停止服务。
Users can develop various APK applications for their own use for free on Android mobile phone platform. In the process of developing the appllcation, the programmer can use the service development in the background of executive time and does not provide a user interface for operating the application components. This article focuses on the process of visual acuity protection programs using the service process. The process first defines Time Service class and Time Activity class. The key of the process is increasing the Activity and the Service configuration in the AndroidManifest. xml file, then call Time Service, start service and stop service.
出处
《张家口职业技术学院学报》
2016年第4期64-67,共4页
Journal of Zhangjiakou Vocational and Technical College