안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요~
Notification.Builder 를 사용하고 싶습니다.
Notification을 만들기 위해 Builder를 이용할려고 하는데 자꾸 빨간 줄이 나오네요...
임포트가 당연히 안된거라 생각했는데, import도 되지 않고 android.app.Notification.Builder는 입력이 되지 않아요,,,
public class Nothing extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
((Button) findViewById(R.id.button1))
.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
Notification notification = new Notification();
Notification.Builder builder = new Notification.Builder();
}
});
}
}
뭐가 잘못된거죠? 어떻게 사용해야하죠?
답변 감사하겠습니다.~




맞는지 모르겠지만 허니컴 이상이어야 되는것 같네요.
저도 노티피케이션 아이콘 관련으로 고민좀 많이 했는데요..
진즉부터 적용했으면 좋았을텐데 너무 늦게 적용한게 아닌가 하는 감이 있네요.