Friday, June 3, 2011

[android-developers] Using Toast in Services

Hello All,

// File MyService.java
public class MyService extends Service {
....
Toast.makeText(this, "Displayed", Toast.LENGTH_SHORT).show(); //
WORKS FINE
scan();
}

//File wifi.java
public class wifi extends ???????? {
.....
public void scan() {
.....
Toast.makeText(??????, "Inside Wifi",
Toast.LENGTH_SHORT).show();
}
}

How can I use Toast in the file wifi.java ?

Regards,
Seema

--
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