TimerTask task_fv = new TimerTask() {
public void run() {
try {
NotificationCompat.Builder builder = new NotificationCompat.Builder(
mContext);
builder.setSmallIcon(R.drawable.ic_launcher)
.setTicker(mContext.getString(R.string.start_fv_notification))
.setAutoCancel(false); // 알림바에서 자동 삭제
noti_dm = builder.build();
RemoteViews views = new RemoteViews(getApplicationContext()
.getPackageName(), R.layout.fv_layout_one);
PendingIntent contentIntent = PendingIntent.getActivity(
getApplicationContext(), 0, new Intent(
getApplicationContext(),
Configuration_Activity.class), 0);
PendingIntent pending_app01 = PendingIntent.getActivity(
mContext, 0, new Intent(mContext
.getPackageManager()
.getLaunchIntentForPackage(app01_pack)), 0);
views.setOnClickPendingIntent(R.id.app01, pending_app01);
views.setImageViewBitmap(R.id.app01,
getAppIconResource(app01_pack));
noti_dm.contentIntent = contentIntent;
noti_dm.contentView = views;
noti_dm.flags |= Notification.FLAG_ONGOING_EVENT;
notificationManager.notify(1114, noti_dm);
// Thread.sleep(1000);
} catch (Exception e) {
Log.e(TAG, e.toString());
}
}
};
자꾸 nullpointerException이 나서요..
어디가 잘못되었을까요? ㅜㅜ..