It's true, sorry:
Here is the code, which I want to use to decide, whether counter and
counter_foe is 5 or not.
if (counter == 5) {
again.post(r3);
next.post(r4);
}
else if (counter_foe == 5) {
again.post(r3);
next.post(r4);
}
But it doesn't do anything when counter or counter_foe reach the 5.
And here is my runnables, what are related to if statements:
final Runnable r3 = new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
again.setVisibility(1);
}
};
final Runnable r4 = new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
next.setVisibility(-1);
}
};
On aug. 8, 19:00, TreKing <[email protected]> wrote:
> On Mon, Aug 8, 2011 at 11:00 AM, Zwiebel <[email protected]> wrote:
> > I tried to do it with the if statements but It doesn't make the button
> > appearing, and I don't know exactly why.
>
> Could you trim your posted code to the specific part that does not work as
> intended? You're more likely to get help with a focused question as opposed
> to posting a giant blob of foreign code.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
--
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