안드로이드 개발 질문/답변
(글 수 45,052)
public class SMSHandler extends BroadcastReceiver
{
private NotificationManager nm=null;
Context mcontext;
.....//여기에 문자를 받았을때 처리일 할 일들을 써주었고요.
//그중 특정 이벤트에서 노티를 띄워줄라고 하고 있는데요 .
//디버깅 해보니깐 오류가 뜨네요 ㅠㅠ
//블로그에 있는 것들은 모두 extends Acivity 에서 작업하는 거라 다른건지 ㅜㅜ
//답변 부탁드릴께요~^^
nm=(NotificationManager) mcontext.getSystemService(Context.NOTIFICATION_SERVICE); //요기서 오류가 나네요 ㅠㅜㅜ
Notification noti = new Notification(R.drawable.smp,cardn+" 한도금액을 초과하셨습니다.",System.currentTimeMillis());
감사합니다~




코드를 정말 저렇게만 적은게 아니겠죠??
이렇게만 보면... 문법 오류인지?? 어떤 오류인지 알수가 없습니다.
최소한 로그라도 올려주셔야 도움을 받을 수 있지 않을까요?