<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.vmloft.develop.daemon.MainActivity"
    >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        >
        <Button
            android:id="@+id/btn_foreground"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="putong 前台 Service"
            />

        <Button
            android:id="@+id/btn_daemon"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Service 内部类方式实现守护进程"
            />

        <Button
            android:id="@+id/btn_background"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="普通后台 Service 进程"
            />

        <Button
            android:id="@+id/btn_job_service"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="5.x使用 JobService 来实现守护进程"
            />
    </LinearLayout>
</RelativeLayout>
