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 <[email protected]> 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 <[email protected]>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 [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-developers?hl=en

Reply via email to