Thank you very much for responding, I hate being new at things but I am. Turns out I simply needed to create a new instance of the class.. been a long time sense I programming with anything but scripts!
On Dec 15, 2:49 pm, Justin Anderson <[email protected]> wrote: > A couple things: > > First, look at the logcat info... it will give more detailed information > about what is going wrong and you might be able to figure it out. > > Second, please provide samples of how you are using the anim_helper class... > You gave us the class you are using but not the code used to call methods on > the class. More than likely the problem is not with the class implementation > but with how it is being used.... > > Thanks, > Justin > > ---------------------------------------------------------------------- > There are only 10 types of people in the world... > Those who know binary and those who don't. > ---------------------------------------------------------------------- > > On Mon, Dec 14, 2009 at 3:00 PM, nathan upchurch > <[email protected]>wrote: > > > > > I am creating a simple little pong style game, so far the the code > > setup is based off of the lunar lander code...that is to say the > > canvas drawing is done in a seperate thread. I created a simple simple > > simple class within the cavas drawing thread: > > > public class anim_helper{ > > private int frame; > > private int frame_max; > > private int fps; > > private long time_start; > > > public anim_helper(Context context, AttributeSet > > attrs) { > > super(); > > } > > > public boolean start_anim_timer(int nfps,int > > nframe_max){ > > return true; > > } > > public int getframe(){ > > return (0); > > } > > } > > > But when ever i call any of these methods the game force closes before > > even entering the class structure.I am sure what i am doing wrong must > > be simple, i have Zero java programming experiance please help. > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-beginners%2bunsubscr[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-beginners?hl=en- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

