title: Path.offset() not working on every device
body: <p>I have some problems with android.graphics.path.<br>
  I am developing a game. I have some Paths. They don't change there sizes, shapes. I draw them onto a canvas. I move them in every game's frame. So I set an offset: dx</p>
  
  <p>It works fine on many devices:</p>
  
  <ul>
  <li>Nokia X Dual Sim (Android 4.4.4 Cyanogenmode)(API level 19)</li>
  <li>Samsung Galaxy Duos (GT-S7562)(Android 4.0.4)(API level 15)</li>
  <li>Sony X8 (Android 2.3.7 Cyanogenmode)(API level 10)</li>
  <li>and on some others</li>
  </ul>
  
  <p>But it not works well on some other devices:</p>
  
  <ul>
  <li>Samsung Galaxy Ace II (Android 4.1.2)(API level 16)</li>
  <li>Nokia X Dual Sim (Nokia X platform 1.2)(Android Studio shows: API level 16) </li>
  <li><p>and on some others
  I set the offset in my draw method:</p>
  
  <p>path.offset(dX, 0);</p></li>
  </ul>
  
  <p>Not working means: it not moves. The system draws it to the original position.<br>
  But when it works, it works descent (moves, and it is fast)</p>
  
  <p>I also tried with Matrixes:</p>
  
  <pre><code>translateMatrix = new Matrix();
  translateMatrix.setTranslate(dX, 0);
  path.transform(translateMatrix);
  </code></pre>
  
  <p>The same happened.</p>
  
  <p>I see something on developer site of Android:
  <a href="http://developer.android.com/reference/android/graphics/Path.html" rel="nofollow">http://developer.android.com/reference/android/graphics/Path.html</a><br>
  void offset(float dx, float dy)<br>
  Offset the path by (dx,dy), returning true on success.<br>
  ??? It must have changed, that's why here is an error</p>
  
  <p>It may in connection with the Hardware Accelerated mode:<br>
  <a href="https://groups.google.com/forum/#!topic/android-developers/HgGVSbSghpk" rel="nofollow">https://groups.google.com/forum/#!topic/android-developers/HgGVSbSghpk</a><br></p>
  
  <p>I support from Api level 9, but I turned Harware Accelerated mode. (It works form API level 14)<br>
  The problem also shows up when I turn it off.<br>
  I don't see why is it sometimes work over API level 14, and sometimes why not?<br></p>
  
  <p>It says, hardware accelerated mode supports Path:<br>
  <a href="http://android-developers.blogspot.de/2011/03/android-30-hardware-acceleration.html" rel="nofollow">http://android-developers.blogspot.de/2011/03/android-30-hardware-acceleration.html</a></p>
  
  <p>Do you know what is the problem with this? What should I do?</p>
  
  <p><strong>Something that mixes it up more:</strong>
  This works on every device (but works slower - it lags):</p>
  
  <pre><code>Canvas temp = new Canvas(bitmap);
  path.draw(temp);
  originalCanvas.drawBitmap(bitmap, 0, 0, myPaint);
  </code></pre>
  
  <p>So</p>
  
  <ol>
  <li>I make a temporary canvas</li>
  <li>I set it on a bitmap</li>
  <li>I draw on that canvas (it will be on the bitmap)</li>
  <li>I draw the bitmap onto the original canvas</li>
  </ol>
  
  <p>Why does it work here?</p>
  
  <p>Please help me how should I make it work.</p>