[android-developers] Re: button click event listener
Thanks for d reply.
But now my problem is solved.
Actually i wanted the player to click button and then the game should
proceed until it waits for the same player to click button again. But
now got the structure. My fault.
On Apr 5, 7:42 pm, Justin Anderson <magouyaw...@gmail.com> wrote:
> > oncreate()
> > {
> > function1( );
> > //wait for onclick event
> > function2( ); //After some calculation, calls function1( )
> > }
>
> That won't work... The UI will not show up until after onCreate() and
> onResume() are called. Why are you explicitly waiting for a click event?
> What are you doing to do that, an infinite loop or something?
>
> Can u suggest me the structure of my game as I am a newbie in Android> programming?
>
> Seems like you need to read up on the Android Activity lifecycle:http://developer.android.com/guide/topics/fundamentals/activities.htm...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> On Thu, Apr 5, 2012 at 2:58 AM, Vivek Punjabi <vivekpunjab...@gmail.com>wrote:
>
>
>
>
>
>
>
> > oncreate()
> > {
> > function1( );
> > //wait for onclick event
> > function2( ); //After some calculation, calls function1( )
> > }
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home