I Just searched this, it would not work, u need to use a Handler to
update the GUI.


On Jan 7, 9:15 am, Nymann <[email protected]> wrote:
> Hi
>
> Maybe something like the following ... (i havent tried the code)
>
> Timer timer = new Timer( true);
>
>         timer.scheduleAtFixedRate(new TimerTask() {
>
>             @Override
>             public void run() {
>                 Toast t = new Toast(context);
>                 t.makeText(context, "Test Toast",
> Toast.LENGTH_SHORT);
>                 t.show();
>
>             }
>         }, new Date(),3000);
>
> Kind regards Per
>
> On Jan 7, 7:28 am, Manoj <[email protected]> wrote:
>
>
>
> > Hi,
>
> > Please help me out on the issue as I want to make a Toast to promt
> > again and again on screen by a service running in background. Please
> > suggest me the way how to make this done.
>
> > manoj chauhan
-- 
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

Reply via email to