[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-11-16 Thread acr
I'm still having this problem and not getting any errors in the debugger. any other suggestions would be greatly appreciated On Nov 2, 12:37 pm, Leigh McRae leigh.mc...@lonedwarfgames.com wrote: Without going over your code all that much the first thing that stands out is that it looks like

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread Peter Webb
I'm a newb as well. I offer my idiot suggestion purely on the basis you sound desperate. I know that feeling. Have you tried calling .invalidate to force a redraw between steps, so the display and your code stay in sync? On Oct 31, 4:43 pm, acr acr...@gmail.com wrote: I am totally stumped

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread acr
invalidate and postInvalidate doesn't fix the problem, VERY desperate, but that's the type of response I was looking for much appreciated. I used logcat and looked at everything if i remove/add 3 items items from the array, the loop runs, it sets the coordinates through each iteration, just the

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread acr
Now I even tried to change my loop to go through the array and get the same EXACT result.. I have to be missing something here. Has ANYone else experienced this type of problem? or can give me some guidance. Thanks a bunch. int temp1Y=0;

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread acr
So, It has nothing to do with the loop if I add the images manually I get the very same result the first graphic is being drawn to x0 y0 in my code. what I have is a column of 7 graphics(_theGrid) and when I remove a graphic from it, a new graphic is created in _toAdd. What my code is doing

Re: [android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread Miguel Morales
Are you sure you are not modifying any of those values from another thread. On Oct 31, 2010 11:07 AM, acr acr...@gmail.com wrote: So, It has nothing to do with the loop if I add the images manually I get the very same result the first graphic is being drawn to x0 y0 in my code. what I have is

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread acr
Thanks for the reply Miguel, Im positive I went through all of the lines just to double check. its getting the incorrect coordinates from the initial values of x and y where graphic.getGridCoordinates().setGrid1Y(y) sets to. but when I print lines via logcat to show the current

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-30 Thread acr
Thanks for the reply, I've done this and it looks like the loop is moving faster than the canvas can draw to the surface. which would explain why I get a positive result when there is only one to loop through and a positive result for the last in the loop. I even attempted to put a Thread.sleep in

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-30 Thread acr
I am totally stumped here, any insight from anyone would be greatly appreciated. I hit a wall and am not sure what else to do. On Oct 31, 12:00 am, acr acr...@gmail.com wrote: Thanks for the reply, I've done this and it looks like the loop is moving faster than the canvas can draw to the