354 reputation
418
bio website
location
age
visits member for 3 years, 4 months
seen Apr 8 at 22:26

Aug
5
awarded  Notable Question
Jul
2
awarded  Curious
Jun
26
awarded  Popular Question
Apr
30
awarded  Notable Question
Aug
30
awarded  Popular Question
Apr
26
comment onTouchEvent only working for one view within activity
Yes, it explains exactly what happens in this case and how to do it correctly.
Apr
24
answered onTouchEvent only working for one view within activity
Mar
29
comment How can I control the frame update rate of a thread?
It is correct that your game thread calls two blocks one for claculation and logic like update() and the other one drawing, that is how the games are done. I use ArrayLists, they are easier to control, add and remove objects etc. In a loop one just checks their size, but they cannot be null. You can also use a boolean flag or an integer constant like final int GAME_MODE_START = 1; so if (gameMode == GAME_MODE_START) then do some things and not do something else...
Mar
28
answered Android bitmap placing
Mar
26
comment How can I control the frame update rate of a thread?
When it comes to the refresh rate, for the purpose of quality and smoothness of animation the best is to keep it at 60fps. Remember that your UI thread should not do any operations on objects in the Game thread, but only inform it what to do via variables, so these two threads will never get in conflict.
Mar
26
answered How can I control the frame update rate of a thread?
Mar
14
awarded  Popular Question
Mar
12
answered How to scroll background image-Android App
Mar
12
awarded  Benefactor
Mar
12
awarded  Nice Question
Mar
11
comment Converting a 2D curve into points for data storage
@msell, see the image - source path is a result of getBoundaryPath(), destination is result of my path extracting algorithm. Intially I had a perfect circle and rectangle.
Mar
11
revised Converting a 2D curve into points for data storage
added 77 characters in body
Mar
11
comment Converting a 2D curve into points for data storage
Also because the points p0-p3 are chaotically placed around the curve I don't think the cubicTo or quadTo should use any of them as a point through which the line should pass.
Mar
11
comment Converting a 2D curve into points for data storage
Because the rest of my app is using one control point, can you post a solution with the one control point as well for quadTo. I can then see what works best for me. By the way thank for making this effort, you definitely deserve the points!
Mar
11
accepted Converting a 2D curve into points for data storage