Wednesday, September 8, 2010

Re: [android-developers] Re: auto switching the tab being viewed

No i haven't answered it at all. the question is how when a thread in one activity realizes something has happened, make the application swith to that tab, as if the users had placed their finger on that tab. but i want it automatic. I do not know how to do this. I do not have an answer to this. I have searched for how to do it.

Mike


On Wed, Sep 8, 2010 at 4:30 PM, HeHe <cnmjbm@gmail.com> wrote:
why googling? you seemed to have answered to your own question, didn't
you?

On Sep 8, 1:19 pm, Mike Adams <adams...@gmail.com> wrote:
> I sent this yesterday but it must have got lost in moderation, as i've
> scanned the posts carefully and not seen my post, so resending.
>
> I've been googleing this but no luck so far. I have a tabbedactivity with
> three tabs. each tab represents an activity, and they are nested classes of
> the main tabbed activity class.   One of my activities has a thread that
> runs and gets messages from the telnet thread via a queue. Without going
> into that to much essentially the issue is sometimes the board activity
> realizes a game has started and creates a new board, but the person may not
> be viewing the board tab, he may be in the console tab reading new chat
> messages, and what I'm trying to do is switch him to the board tab when a
> game starts. See he can send a request for a game and be waiting for someone
> to respond, and be watching the new chat in the console view rather than
> being in his board view, but ideally i want to switch him to the board
> activity/tab on new game.
>
> Since the board tab has a thread running, maybe there is just a line of code
> i can stick into a handler ( using a handler since the thread cant touch the
> UI itself ) that brings that activity, tab to the front or selected.
>
> Mike

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

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