13

Now that Android 4.1.1 is out there on some phones I noticed that issues start to pop out using default browser and this OS.

In my case I have an application that uses web views (meaning default browser) and a lot of canvas.

I want by having this topic that everyone to post found issues and solutions if you know one.

I will start with:

Problem: duplicated canvas More info at: http://code.google.com/p/android/issues/detail?id=35474 Solution Canvas parent element should not have css property "overflow" with value "hidden"

Problem Canvas drawing looks pixelated More info: You can read: http://www.html5rocks.com/en/tutorials/canvas/hidpi/ and also test //html5rocks.com/en/tutorials/canvas/hidpi/demo/demo.html to see yourself (in my case I don't use images I build using canvas and my drawing looks pixelated) also some info can be found at //code.google.com/p/android/issues/detail?id=38470 Solution (searching for one)

Problem Canvas drawn disappears More info: I couldn't found other people encountering this and in my case it reproduces sometimes. Solution (searching for one)

PS: I cannot post link because of anti-spam

Update (3 Sep 2013): duplicate canvas issue now appears on Nexus 7 having Android 4.2.2 and/or 4.3 Also you may want to know that "duplicate canvas" issue happens only if you have "Force GPU rendering" enabled for your device.

darkyndy
  • 577
  • 5
  • 15
  • 7
    searching for solution to the same set of problem. Moderators, stop being so overzealous, its clear he is asking for a solution or any any hints leading to it! – Greg Balajewicz Dec 12 '12 at 14:18
  • 1
    Have a look at: https://code.google.com/p/android/issues/detail?id=35474 – Simon Sarris Feb 06 '13 at 18:33
  • Updated initial content. Now duplicate canvas issue appears in Android 4.2.2 and 4.3 on Nexus 7 device. – darkyndy Sep 03 '13 at 12:35
  • 1
    @GregBala Agreed. I am here for the same reason and this question is interesting. also for duplicated canvas I found I needed to set the `position` property to `absolute` both for the canvas and the parent container – Mirko Sep 17 '13 at 15:54
  • I posted a fix (bandaid) to this problem here: http://stackoverflow.com/questions/18271990/android-native-browser-duplicating-html5-canvas-fine-in-chrome/19014011#19014011 – rickdmer Sep 25 '13 at 19:54
  • There is still no solution for this problem. we basically abandoned the canvas for animation and use divs for sprite animation – Greg Balajewicz Oct 05 '13 at 18:06
  • There is a solution - triggering a redraw, or absolutely positioning the elements - both of those solve the issue. I won't say that redraw will work in all cases but I used positioning and it works fine (HTC 4.1 and HTC 4.2 as test devices - not positioning solves this jsut visually). – easwee Nov 09 '15 at 14:40
  • Voting to reopen since tihs problem is still very actual for all android developers still having to support Android native browser on 4.1/4.2/4.3 systems. – easwee Nov 09 '15 at 14:45
  • @easwee the problem may be actual still, but this is not even a question, it's a collection of problems and solution(s) – Tim Nov 09 '15 at 14:55

0 Answers0