Re: [android-developers] Re: Button for dynamic text

2012-02-22 Thread TreKing
On Wed, Feb 22, 2012 at 2:13 PM, Pram goodp...@gmail.com wrote: when I try to use return in my if statement that does not work the tv statements do not show anything on the screen when it is executed. The code in your original post is extremely hard to read. Try a smaller snippet that

RE: [android-developers] Re: Button for dynamic text

2012-02-22 Thread Tommy Hartz
[mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Wednesday, February 22, 2012 3:22 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Button for dynamic text On Wed, Feb 22, 2012 at 2:13 PM, Pram goodp...@gmail.com wrote: when I try to use return

Re: [android-developers] Re: Button for dynamic text

2012-02-22 Thread TreKing
On Wed, Feb 22, 2012 at 2:39 PM, Tommy Hartz droi...@gmail.com wrote: Why not connect the button click event to a function EX public void onClick(View v) { Toast.makeText(Num.this, stringFunction(),Toast.LENGTH_SHORT).show(); } Public string stringFunction(){ If(whatever){ Return =

RE: [android-developers] Re: Button for dynamic text

2012-02-22 Thread Tommy Hartz
@googlegroups.com Subject: Re: [android-developers] Re: Button for dynamic text On Wed, Feb 22, 2012 at 2:13 PM, Pram goodp...@gmail.com wrote: when I try to use return in my if statement that does not work the tv statements do not show anything on the screen when it is executed. The code in your