【Android】16.0 第16章 自定义服务和系统服务—本章示例主界面

分类:C#、Android、VS2015;

创建日期:2016-03-01

一、简介

本章主要演示Started Service、带Intent过滤器的Started Service、IntentService的基本用法,并简单介绍Android提供的系统服务。

二、本章示例主界面

1、运行截图

image

2、MainActivity.cs文件中对应的代码

chItems.Add(new Chapter()
{
    ChapterName = "第16章 自定义服务和系统服务",
    ChapterItems = new ChItem[]
    {
        new ChItem { type=typeof(ch1601MainActivity), Title="例16-1 StartedServiceDemo1", Desc = "演示Started Service的基本用法" },
        new ChItem { type=typeof(ch1602MainActivity), Title="例16-2 StartedServiceDemo2", Desc = "演示带Intent过滤器的Started Service基本用法" },
        new ChItem { type=typeof(ch1603MainActivity), Title="例16-3 IntentServiceDemo", Desc = "演示IntentService的基本用法" },
    }
});
posted @ 2016-03-01 06:21  rainmj  阅读(503)  评论(0编辑  收藏  举报