需要framework.jar包。调用方法:Intent intent =new Intent(this,MyService.class); intent.putExtra("package",packet.getPackagename()); startService(intent);