Thursday, April 5, 2012

Re: [android-developers] button click event listener

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.html#Lifecycle

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Apr 5, 2012 at 2:58 AM, Vivek Punjabi <vivekpunjabi91@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

No comments:

Post a Comment