Yes, I am. Still, you mentioning hardware acceleration was what I needed as 
I found the answer in your blog 
post<http://android-developers.blogspot.de/2011/03/android-30-hardware-acceleration.html>.
 
Turning off hardware acceleration actually helps. I'm not calling any 
methods methods you mentioned there, but I suspect they are called 
internally.

If useful for anyone, I already set up a sample 
project<https://github.com/georgwiese/Path-Test--Android->on Github in which I 
describe two situations in which I had those 
problems. Basically, it's an empty project except for this CustomView 
class<https://github.com/georgwiese/Path-Test--Android-/blob/master/src/com/example/pathtest/CustomView.java>in
 which all the work is done.

Thank you for your answer ;)

On Friday, August 31, 2012 5:46:43 PM UTC+2, Romain Guy (Google) wrote:
>
> With API 14 your app is hardware accelerated. Are you sure you are 
> calling invalidate() on the View that contains this drawPath code? 
>
> On Thu, Aug 30, 2012 at 9:05 AM, Georg Wiese 
> <[email protected]<javascript:>> 
> wrote: 
> > I'm having several issues dealing with android.graphics.Path when I set 
> my 
> > target API-Level to 14 or higher and only on certain devices. One has 
> > already been described here, another one is this: 
> > 
> > I used to be able to create a Path and then in View.onDraw() do 
> something 
> > like: 
> > canvas.drawPath(p, paint); 
> > pTest.offset(1, 1); 
> > This would offset the path by 1 pixel each dimension every time 
> > View.invalidate() is called. At target API-Level 14+ however, this 
> offsets 
> > it only once and then never again, when running on the Nexus 7. On the 
> > emulator, it works just as it should. 
> > 
> > Does anyone know, what the problem is here? Thanks in advance. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Android Developers" group. 
> > To post to this group, send email to 
> > [email protected]<javascript:> 
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:> 
> > For more options, visit this group at 
> > http://groups.google.com/group/android-developers?hl=en 
>
>
>
> -- 
> Romain Guy 
> Android framework engineer 
> [email protected] <javascript:> 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to