摘要:步骤如下: (1)定义一个Service,名为MyService 继承自 Service。在onCreate方法中声明以下语句: Intent intent = new Intent(); //声明一个intent intent.putExtra("key",value); //放数据 intent
阅读全文
04 2020 档案
摘要:步骤如下: (1)定义一个Service,名为MyService 继承自 Service。在onCreate方法中声明以下语句: Intent intent = new Intent(); //声明一个intent intent.putExtra("key",value); //放数据 intent
阅读全文
|