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%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to