测试环境安卓5.1
我在Activity按钮点击事件,启动IntentService
Intent intent = new Intent(pda_login.this, pda_intentservice.class);
intent.putExtra("type", "login");
intent.putExtra("name", name);
intent.putExtra("password", password);
intent.putExtra("function", "ValidUserInfo");
//启动IntentService
startService(intent);
一直进入不了onHandleIntent处理中,pda_intentservice类如下
public class pda_intentservice extends IntentService {
public pda_intentservice(){
super("pda_intentservice");
}
@Override
protected void onHandleIntent(Intent intent){
//调用webservice
}
}
AndroidManifest.xml中配置:
<service android:name=".pda_intentservice"></service>
请各位大虾帮忙看看,小弟是菜鸟!在线等