스레드에서 알림을 보내려고하지만 어떻게 든 작동하지 않습니다.Android - 생성자가 정의되지 않았습니다.
public void start_progressbar(View v) {
final ProgressDialog pd = ProgressDialog.show(this,
"Sending Notification", "Working... ", true, false);
new Thread() {
public void run() {
try {
sleep(3000);
notification();
} catch (Exception e) {
final String ERROR = e.toString();
Log.e(TAG + "He's dead Jim!!", "" + e);
}
pd.dismiss();
}
private void notification() {
// TODO Auto-generated method stub
Notification not = new NotificationCompat.Builder(this)
.setContentTitle("New Event")
.setContentText("Monday 12. 11. 2014 meeting")
.build();
}
}.start();
}
질문을 명확히하십시오. 작동하지 않는 것은 무엇입니까? 알림을 보내거나 보낸 알림을 처리하고 있습니까? 로그 파일의 내용은 무엇입니까? –