It is for Augmented Reality App, i really need to use Threads for
this, or the camera doesn't works properly

The code that i posted gives me an exception.... how can i avoid that
exception? the Exception is posted in the question.

Thanks

On 26 sep, 16:52, TreKing <treking...@gmail.com> wrote:
> On Mon, Sep 26, 2011 at 8:37 AM, saex <elpablos...@gmail.com> wrote:
> > But i want to do it on a separate Thread, to optimize my app removing tasks
> > from the main thread, because the main thread have a lot of tasks on it and
> > it needs to use threads for such thinks
>
> Putting arbitrary functionality on another thread will not optimize your app
> unless you make really good use of multi-core processers. In fact, it will
> slow it down with the overhead of creating, switching to, running, and
> cleaning up the thread.
>
> > please tell me how to make a thread that only executes itself one time
>
> The code you already have will do exactly that, as pointless as it is.
>
> -------------------------------------------------------------------------------------------------
> 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