안드로이드 개발 질문/답변
(글 수 45,052)
갤럭시 S에서 통화중 notification바를 밑으로 내리면 이러한 창이 나오게 됩니다.
여기서 통화중일때 송화음 차단, 한뼘 통화 통화 종료등의 버튼을 추가하는 것까지는 성공했는데 버튼이 포커스를 받지
못하더군요, 알림바 전체만 클릭이 됩니다. 해결방법 아시는분 도움좀 주세요~~
private void notifyMe() {
final NotificationManager mgr=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
Notification note=new Notification(R.drawable.red_ball, "Status message!", System.currentTimeMillis());
Intent intent = new Intent("button_click");
PendingIntent i=PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);
RemoteViews rv = new RemoteViews(getPackageName(),R.layout.buttontest);
rv.setOnClickPendingIntent(R.id.Button01, i);
note.contentView = rv;
note.contentIntent = i;
note.number=++count;
mgr.notify(NOTIFY_ME_ID, note);
}