这是一个activity中代码
Intent intent = new Intent();
System.out.println("进入player1111111");
intent.putExtra("mp3Info", mp3Info);
intent.setClass(PlayerActivity.this, PlayerService.class);
//启动service
PlayerActivity.this.startService(intent);
然后
PlayerService 继承service类,复写的oncreate() onstart() onStartCommand(Intent intent, int flags, int startId) 等 方法里 都写了打印语句, 却都没执行到
Intent intent = new Intent();
System.out.println("进入player1111111");
intent.putExtra("mp3Info", mp3Info);
intent.setClass(PlayerActivity.this, PlayerService.class);
//启动service
PlayerActivity.this.startService(intent);
然后
PlayerService 继承service类,复写的oncreate() onstart() onStartCommand(Intent intent, int flags, int startId) 等 方法里 都写了打印语句, 却都没执行到
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货