在我的应用程序中,有一个服务类,需要从该服务类调用一个活动类,但每次调用该活动类时,它都会向我显示一条消息:
应用程序没有响应,下面是我的代码..
public class MyAlarmService_Movie extends Service {
@Override
public void onCreate() {
super.onStart(intent, startId);
Intent in=new Intent().setClass(MyAlarmService.this,Reminder.class);
startActivity(in);
}
}
Give in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
在开始意图之前。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)