Client代码

来源:互联网 发布:苹果系统怎么卸载软件 编辑:程序博客网 时间:2024/05/08 20:52

  Client代码

  public class ClientActivity extends AppCompatActivity {

  @Override

  protected void onCreate(@Nullable Bundle savedInstanceState) {

  super.onCreate(savedInstanceState);双流治疗膀胱炎男科医院哪家好
成都市治疗阳痿医院哪儿好
郫都区红光哪里有治疗阳痿好的医院
成都青白江治疗睾丸炎哪里的医院好

  setContentView(R.layout.activity_main);

  }

  //客户端同时发送两个任务到IntentService服务端执行

  public void send(View view) {成都石羊场无痛人流哪家医院好
成都梁家巷做无痛人流哪家医院好
成都青羊区哪里的男科医院治疗早泄好
成都龙泉哪里可以治疗阳痿
成都人民公园做人流大概多少钱

  Intent intent = new Intent(this, DownLoadService.class);

  intent.putExtra("key", 1);

  intent.putExtra("value", "the first task1");

  startService(intent);成都万象城哪个医院人流好
金牛区无痛人流要多少钱
成都双流无痛人流医院哪家好
治疗白带异常成都双流哪家妇科医院好?
成都青羊区哪家医院治疗宫颈糜烂好

  Intent intent1 = new Intent(this, DownLoadService.class);

  intent1.putExtra("key", 2);

  intent1.putExtra("value", "the second task2");

  startService(intent1);

  }

  }

原创粉丝点击