You can use a status bar notification, or implement some sort of
callback (listener) that takes you back to the activity, where you can
e.g. display a dialog:
myObject.setErrorListener(new ErrorListener() {
@Override
public void somethingBadHappened(.... ) {
// display a dialog, a toast, or call activity.finish() :)
}
};
-- Kostya
07.07.2011 22:33, Raghav Sood ?????:
I know :(. But I am at a loss as to how to notify my users that there
is something wrong.
On Thu, Jul 7, 2011 at 11:59 PM, TreKing <treking...@gmail.com
<mailto:treking...@gmail.com>> wrote:
On Thu, Jul 7, 2011 at 1:24 PM, Raghav Sood <raghavs...@gmail.com
<mailto:raghavs...@gmail.com>> wrote:
P.S. If I have a method in my Activity to display a toast can
I safely call it from the Overlay class?
Well, sure, with a valid reference to the Activity. But injecting
a dependency on the Activity into your Overlay to display a toast
does not seem like a great idea.
--
Kostya Vasilyev
--
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