avi-otterai / andar

Automatically exported from code.google.com/p/andar
0 stars 0 forks source link

Need help inserting code when detecting marker #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have this code:

Toast toast = Toast.makeText(contextToast, text, duration);
        toast.show();

I need to know where I have to put it to take effect when the marker is 
detected.

Can anybody help me?

Thanks in advance

Original issue reported on code.google.com by bmp.barb...@gmail.com on 14 Sep 2011 at 1:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hei! I've found the solution but.. I need something more, I need to show 
different information depending on the marker; if the marker is different I 
need to show another information, how can I know which marker it is?

Original comment by bmp.barb...@gmail.com on 19 Sep 2011 at 2:24

GoogleCodeExporter commented 9 years ago
Solved

Original comment by bmp.barb...@gmail.com on 23 Sep 2011 at 9:44

GoogleCodeExporter commented 9 years ago
So, that text is shown when the marker is detected? Could you post the code, 
please? Maybe useful for me...
Thanks in advance!

Original comment by gae.gu...@gmail.com on 23 Sep 2011 at 3:02

GoogleCodeExporter commented 9 years ago
pls could you explain what did  you do? do you changed  draw () or  in main 
activity added your  toast message?

Original comment by vict.gu...@gmail.com on 30 Jan 2012 at 12:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm sorry for not answering before. 

I create the Toast in the Context.java and then in the draw() function I only 
did toast.show(). I can provide some code tonight if you want.

But now I want to make a new toast in the draw() function and it doesn't work.. 
It is a problem with the multithreating. I get this error: Can't create handler 
inside thread that has not called Looper.prepare() .

Original comment by bmp.barb...@gmail.com on 26 Mar 2012 at 7:50