关于service启动问题

Intent intent=new Intent(ServiceTestActivity.this, TestIntentSerivice.class);
intent.putExtra("message", "sxx");
startService(intent);


报如下的错:
E/AndroidRuntime(14434): java.lang.RuntimeException: Unable to instantiate service com.signway.service.TestIntentSerivice: java.lang.InstantiationException: can't instantiate class com.signway.service.TestIntentSerivice; no empty constructor


请大神帮忙,看看看这个问题怎么解决

猜你喜欢

转载自hugh-sxx.iteye.com/blog/1632851