NotificationManager.notify() 을 이용하여 setProgressBar를 반복 호출시 핸드폰 재부팅됩니다. 왜 그럴까요??


weblink.aspx?type=download&GUID=ODk5QTdCODZGMDUzNkJGMkUwNDAwMDdGMDEwMDFERDh8MTAwMTIyMjMw.png

제가 작성하고 있는 프로그램에서 폴더 복사를 할때 notify 창을 이용하여 progressvar 등 레이아웃을 계속해서 갱신해 줍니다.

폴더 복사를 하면.. notifymanger생성 -> 프로그래스바  갱신 --> 파일복사 완료 ->  notify 리셋 -> 프로그래바 갱신 반복됩니다.

코드를 확인해 보면..
notifymanger 생성

   manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
   flags |= super.FLAG_ONGOING_EVENT;
   contentView = new RemoteViews(context.getPackageName(),
     R.layout.notification_layout);
   
   Intent intent = new Intent(context, TranslucentDialog.class);
   intent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP );
   intent.putExtra("id",id);
   contentIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
   contentView.setTextViewText(R.id.trans_name, mType + "   " + filename);
   contentView.setTextViewText(R.id.trans_info, 
     String.format(context.getString(R.string.trans_info), currentCount, mTotalCount));
   contentView.setProgressBar(R.id.progress_bar, max, progress, false);
   // show notification to user
   manager.notify(id, this);

notifymanger 프로그래스바 설정

  contentView.setProgressBar(R.id.progress_bar, max, this.progress, false);
   // change notification for user
   manager.notify(id, this);

notifymanger 리셋(  복사 파일 설정, 프로그래스 바 0으로 다시 셋팅 ..)

   contentView.setTextViewText(R.id.trans_name, mType + "   " + filename);
   contentView.setTextViewText(R.id.trans_info, 
     String.format(context.getString(R.string.trans_info), count, mTotalCount));
   contentView.setProgressBar(R.id.progress_bar, max, progress, false);
   // show notification to user
   manager.notify(id, this);


하나 두개 정도의 파일이 복사되는건 잘 되지만..
하위파일이 50개 이상일 경우에 재부팅 됩니다..-_-ㅁ

ES 파일 탐색기 어플은 아주 빠른속도로 잘됩니다.. 서비스를 사용해야 되나 싶기도 하네요??
도움 부탁드립니다..

문제가 예상 되는 곳의 로그
07-13 15:49:00.307: DEBUG/dalvikvm(445): GC freed 2457 objects / 129024 bytes in 67ms
07-13 15:49:00.907: INFO/dalvikvm-heap(80): Clamp target GC heap from 32.290MB to 32.000MB
07-13 15:49:00.907: DEBUG/dalvikvm(80): GC freed 47465 objects / 1792792 bytes in 299ms
07-13 15:49:01.847: DEBUG/dalvikvm(445): GC freed 2304 objects / 120416 bytes in 62ms
07-13 15:49:01.857: ERROR/dalvikvm-heap(80): 61344-byte external allocation too large for this process.
07-13 15:49:01.857: ERROR/dalvikvm(80): Out of memory: Heap Size=27719KB, Allocated=26404KB, Bitmap Size=5068KB
07-13 15:49:01.857: ERROR/(80): VM won't let us allocate 61344 bytes
07-13 15:49:01.857: ERROR/JavaBinder(80): *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
07-13 15:49:01.857: ERROR/JavaBinder(80): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.graphics.Bitmap.nativeCreateFromParcel(Native Method)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.graphics.Bitmap.access$000(Bitmap.java:39)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.graphics.Bitmap$1.createFromParcel(Bitmap.java:998)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.graphics.Bitmap$1.createFromParcel(Bitmap.java:1004)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.widget.RemoteViews$ReflectionAction.<init>(RemoteViews.java:333)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.widget.RemoteViews.<init>(RemoteViews.java:540)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.widget.RemoteViews$1.createFromParcel(RemoteViews.java:982)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.widget.RemoteViews$1.createFromParcel(RemoteViews.java:985)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at com.android.internal.appwidget.IAppWidgetService$Stub.onTransact(IAppWidgetService.java:153)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at android.os.Binder.execTransact(Binder.java:287)
07-13 15:49:01.857: ERROR/JavaBinder(80):     at dalvik.system.NativeStart.run(Native Method)
07-13 15:49:01.857: WARN/dalvikvm(80): threadid=81: thread exiting with uncaught exception (group=0x4001b390)
07-13 15:49:01.857: ERROR/AndroidRuntime(80): Uncaught handler: thread Binder Thread #7 exiting due to uncaught exception
07-13 15:49:01.857: ERROR/AndroidRuntime(80): *** EXCEPTION IN SYSTEM PROCESS.  System will crash.
07-13 15:49:01.857: ERROR/AndroidRuntime(80): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.graphics.Bitmap.nativeCreateFromParcel(Native Method)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.graphics.Bitmap.access$000(Bitmap.java:39)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.graphics.Bitmap$1.createFromParcel(Bitmap.java:998)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.graphics.Bitmap$1.createFromParcel(Bitmap.java:1004)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.widget.RemoteViews$ReflectionAction.<init>(RemoteViews.java:333)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.widget.RemoteViews.<init>(RemoteViews.java:540)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.widget.RemoteViews$1.createFromParcel(RemoteViews.java:982)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.widget.RemoteViews$1.createFromParcel(RemoteViews.java:985)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at com.android.internal.appwidget.IAppWidgetService$Stub.onTransact(IAppWidgetService.java:153)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at android.os.Binder.execTransact(Binder.java:287)
07-13 15:49:01.857: ERROR/AndroidRuntime(80):     at dalvik.system.NativeStart.run(Native Method)
07-13 15:49:01.857: INFO/Process(80): Sending signal. PID: 80 SIG: 9
07-13 15:49:01.917: ERROR/JavaBinder(20310): !!! FAILED BINDER TRANSACTION !!!
07-13 15:49:01.937: INFO/ServiceManager(52): service 'power' died
07-13 15:49:01.937: INFO/ActivityThread(20354): Removing dead content provider: settings


공지사항을 다 읽었음.  입력할때는 코드 하이라이트가 되는데.. 등록하면 안되네요..ㅠㅠ