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 = “Hello”;
>
> }
>
> }
>
On Wed, Feb 22, 2012 at 4:46 PM, Pram <goodp...@gmail.com> wrote:

> At publicstring stringFunction(){
> I am getting syntax error need ; to complete Field Decleration.
>

I'm sorry, but you both need to learn Java.

-------------------------------------------------------------------------------------------------
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to