Exceptions was: Exception locking surface - lockCanvas() returns a null?

by Ward Willats » Sat, 11 Apr 2009 22:49:39 GMT


Sponsored Links
 


Hi Stoyan:

What is your reasoning here? Why would  it be preferred to make the 
runtime setup two exception frames? That has to be more expensive 
than a simple test against null?

I mean, I see there is some exception type safety in the two frame 
approach, but is there some horrible hole in the single frame method? 
or is two frames just "taste" ?

-- Ward

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



Other Threads

1. HTC Magic Wifi not working

Has anyone else had problems with the wifi connection on their HTC
Magic? I can connect to the wifi network, and can see its getting an
IP address but the browser, email and app market hang. These apps all
work fine on 3G. Any suggestions for diagnosing the fault?

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

2. get xy of bitmap during onTouch in custom ImageView component

I'm still getting used to Android development, so forgive me if this
is a newb question.

I've created a custom ImageView component, and I want to translate the
(screen)x,y coords obtained from the MotionEvent during onTouchEvent,
into a set of (bitmap)x,y coordinates of the image. How can I get
these values? So far I cant even tell if the touchEvent was on the
actual image part of the component.

thanks,

-dj

--

3. Android Developers Wanted

4. ADC2 categories

5. Proposed Android Pet Application

6. Root access

7. Motorola App Accelerator program - is it a dead end?