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 first 2 graphics draw to x0,y0 and the third draws to the correct location. do you or ANYone else have ANYother suggestions? MUCH appreciated On Oct 31, 5:27 am, Peter Webb <r.peter.w...@gmail.com> wrote: > 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 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 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 the mix and still no luck. I > > > relatively am new to android and Java, so not quite sure how to remedy > > > the problem. > > > > On Oct 30, 10:49 pm, Shawn Brown <big.coffee.lo...@gmail.com> wrote: > > > > > > if(_theGrid1.size()<7){ > > > > > int g1left = 7-_theGrid1.size(); > > > > > int i; > > > > > for(i=1;i<=g1left;i++){ > > > > > x1=64; > > > > > y1=i*64; > > > > > > > > > > graphic.getGridCoordinates().setGrid1X(x1); > > > > > > graphic.getGridCoordinates().setGrid1Y(y1); > > > > > This looks fine to me. Personally, I'd just log the values to confirm > > > > that. > > > > > As for the remaining code, I can't tell what you are doing there. > > > > Personally, I'd just log the values to see what is going wrong where. > > > > > Shawn- Hide quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en