Thread.setDefaultUncaughtExceptionHandler usage

by Dianne Hackborn » Thu, 21 May 2009 06:02:02 GMT


Sponsored Links
 At a very basic level, if you don't trust the activities you are running in
your process to be stable, then you certainly shouldn't be trusting them
enough to load in your own process in the first place.

On Wed, May 20, 2009 at 3:41 AM, Nik Bhattacharya <





-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Default display unit px or dp?

I always thought the default display unit would be pixels.

But when I run my application on WVGA800 in the emulator the lines are
five pixels wide even though I called Paint.setStrokeWidth(3). The
same seems to happen with Drawable.setBounds(); the value I provide
gets multiplied by 1.5 internally.

If that's the case, how can I specify pixels instead of dips if I want
pixels?

Can someone clarify this?

--~--~---------~--~----~------------~-------~--~----~

2. Emulator: LogCat Errors for Donut 1.6 Release

Hi All,

The following errors occurred during startup of Android 1.6 SDK
Release Emulator:


What do the following errors mean?

Can these errors be ignored?


Emulator Details:


Target: Google APIs (API Level 4)
Skin: HVGA
SDCARD: 64MB  image size


Errors:

09-16 13:16:00.072: ERROR/vold(550): Error opening switch name path '/
sys/class/switch/test2' (No such file or directory)
09-16 13:16:00.072: ERROR/vold(550): Error bootstrapping switch '/sys/
class/switch/test2' (No such file or directory)
09-16 13:16:00.072: ERROR/vold(550): Error opening switch name path '/
sys/class/switch/test' (No such file or directory)
09-16 13:16:00.072: ERROR/vold(550): Error bootstrapping switch '/sys/
class/switch/test' (No such file or directory)
09-16 13:16:54.123: ERROR/MemoryHeapBase(582): error opening /dev/
pmem: No such file or directory
09-16 13:16:54.133: ERROR/SurfaceFlinger(582): Couldn't open /sys/
power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
09-16 13:16:54.312: ERROR/libEGL(582): couldn't load <libhgl.so>
library (Cannot load library: load_library[984]: Library 'libhgl.so'
not found)
09-16 13:16:56.602: ERROR/libEGL(598): couldn't load <libhgl.so>
library (Cannot load library: load_library[984]: Library 'libhgl.so'
not found)
09-16 13:17:17.392: ERROR/BatteryService(582): Could not open '/sys/
class/power_supply/usb/online'
09-16 13:17:17.392: ERROR/BatteryService(582): Could not open '/sys/
class/power_supply/battery/batt_vol'
09-16 13:17:17.401: ERROR/BatteryService(582): Could not open '/sys/
class/power_supply/battery/batt_temp'
09-16 13:17:19.242: ERROR/EventHub(582): could not get driver version
for /dev/input/mouse0, Not a typewriter
09-16 13:17:19.271: ERROR/EventHub(582): could not get driver version
for /dev/input/mice, Not a typewriter
09-16 13:17:19.852: ERROR/System(582): Failure starting core service
09-16 13:17:19.852: ERROR/System(582): java.lang.SecurityException
09-16 13:17:19.852: ERROR/System(582):     at
android.os.BinderProxy.transact(Native Method)
09-16 13:17:19.852: ERROR/System(582):     at
android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:
146)
09-16 13:17:19.852: ERROR/System(582):     at
android.os.ServiceManager.addService(ServiceManager.java:72)
09-16 13:17:19.852: ERROR/System(582):     at
com.android.server.ServerThread.run(SystemServer.java:162)
09-16 13:17:19.892: ERROR/AndroidRuntime(582): Crash logging skipped,
no checkin service
09-16 13:17:26.013: ERROR/LockPatternKeyguardView(582): Failed to bind
to GLS while checking for account



Thanks,
KK

--~--~---------~--~----~------------~-------~--~----~

3. Why does getPadding() of NinePatchDrawable throw a NullPointerException?

4. Eric Chu, there鈥檚 one number that is missing in your ADC2 posts.

5. Activity blocks till service completes

6. JJIL (image processing library)

7. stopped unexpectedly when run on emulator