안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요.. ~
서비스에서
Intent intent = new Intent(mService.this, intentShow.class);
startActivity(intent);
이렇게 하면 에러가 나나요???
에러는 없는데 실행 자체가 안되네요..
방법 알고 계신분 해결방법좀 알려주세요~
서비스에서
Intent intent = new Intent(mService.this, intentShow.class);
startActivity(intent);
이렇게 하면 에러가 나나요???
에러는 없는데 실행 자체가 안되네요..
방법 알고 계신분 해결방법좀 알려주세요~
2010.04.06 09:27:21
간단하게 이렇습니다..
public class mService extends Service {
@Override
public IBinder onBind(Intent intent) {
// TODO Auto-generated method stub
return null;
}
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
Intent intent = new Intent(mService.this, intentShow.class);
startActivity(intent);
}
public class mService extends Service {
@Override
public IBinder onBind(Intent intent) {
// TODO Auto-generated method stub
return null;
}
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
Intent intent = new Intent(mService.this, intentShow.class);
startActivity(intent);
}
AndroidManifest.xml 에서 Application -> Application nodes 에 intentShow Acitvity 를 추가하셨나요?