I'm working with an android 2.3.1 port for some hybrid freescale imx53 
hardware and running into some problems. I've got code in an app running in 
the os that does effectively the very same thing as below.

private Runnable mUpdateTimeTask = new Runnable() {
   public void run() {
       final long start = mStartTime;
       long millis = SystemClock.uptimeMillis() - start;
       int seconds = (int) (millis / 1000);
       int minutes = seconds / 60;
       seconds     = seconds % 60;

       if (seconds < 10) {
           mTimeLabel.setText("" + minutes + ":0" + seconds);
       } else {
           mTimeLabel.setText("" + minutes + ":" + seconds);            
       }
     
       mHandler.postAtTime(this,
               start + (((minutes * 60) + seconds + 1) * 1000));
   }
};

If left running for hours or so, the app just hard freezes. No logcat 
messages or syslog messages with any clue as to what mmight be causing 
this. I would have expected that if this was related to UI blocking etc... 
I'd get an anr if nothing else.

As a side note, I've disabled sleep mode in the rom by commenting out 
setTimeoutLocked() calls in PowerManagerService as I'm working with a 
hardwired device that never sleeps.

Does anyone have any pointers of things I can investigate, if android 
appears to be hard crashing (missing services etc)?


-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to