你好,游客 登录 注册 搜索
背景:
阅读新闻

Android实现电蚊香/Service服务管理类

[日期:2013-02-09] 来源:Linux社区  作者:dlutbrucezhang [字体:大 中 小]

3.Service的注册

 <service
      Android:name=".MyService"
      android:exported="true"
      android:process=":remote"
    />

4.布局文件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:background="@drawable/white"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:gravity="center_horizontal"
>
  <ImageView
    android:id="@+id/image01"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingTop="30dip"
  />
  <ImageButton
    android:id="@+id/button01"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="20dip"
  />
</LinearLayout>

更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11

linux
相关资讯       Android入门教程  Android Service 
本文评论   查看全部评论 (2)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 2 楼
* 匿名 发表于 2013/6/28 12:48:01
123456
第 1 楼
* 匿名 发表于 2013/6/28 12:44:38
靠谱吗