public IBinder onBind(Intent intent){
  thread = new SocketThread(this, mHandler);
  thread.start();
  return mBinder;
 }

 Handler mHandler = new Handler(){
     public void handleMessage(Message msg){
      Notification noti = new Notification(R.drawable.ic_launcher, TICKER, System.currentTimeMillis());
      noti.defaults |= Notification.DEFAULT_SOUND;
      noti.flags |= Notification.FLAG_INSISTENT;
      Intent intent = new Intent(Test_Service.this, Test_androidActivity.class);
      intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      PendingIntent content = PendingIntent.getActivity(Test_Service.this, 0, 
        new Intent(Test_Service.this, Test_androidActivity.class).putExtra(TICKER, msg.obj.toString()), PendingIntent.FLAG_UPDATE_CURRENT);
      noti.setLatestEventInfo(Test_Service.this, TICKER, msg.toString(), content);
      if(msg.what == 0){
       mNotiManager.notify(NAPNOTI, noti); //<========이부분에서 Java.lang.NullPointerException 에러 발생
      }
     }
    };


현재  Thread에서는 소켓으로 서버에서 메시지를 날려주면 받고 있구요 그 Thread는 Service에서 실행되고 있습니다.

그리고 핸들러는 위와 같이 구성되어있구요. 구현하려는 것은 이제 쓰레드에서 서버의 메시지가 발생하면 알람 창이 뜨고

그알람 창을 누르게되면 메인 액티비티에 해당 메시지가 나타나게 하고 싶은데요....

문제는 위와같이 핸들러에 Notification 및 Intent 등등 전부 설정을 해두었습니다. 그런데 위에 표시해둔 곳에서

NullPointerException에러가 발생하더라구요...무엇이 문젤까요?코드 자체가 잘못된거 같진 않은데...

가르쳐주시면 감사하겠습니다!!ㅜㅜ