Show content between two Activity automatically?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Show content between two Activity automatically?

Postby onion » Thu Jul 17, 2008 7:28 am

Dear all,

I try to switch two actvity automatically for several times, using setContentView(layoutResId). But the screen doesn't show the content view of two, it only shows one of final Activity that be called.
I think that the switching is too fast to draw on the screen. what can i do for that??

Thanks~
onion
Freshman
Freshman
 
Posts: 3
Joined: Thu Jul 17, 2008 7:15 am

Top

Postby noname » Thu Jul 17, 2008 3:54 pm

You can use a Thread.sleep() or switch only the view in a single activity.
You can make an external thread which changes the view at specified delay.
noname
Freshman
Freshman
 
Posts: 2
Joined: Thu Jul 17, 2008 12:00 am

Postby onion » Fri Jul 18, 2008 11:12 am

The bothersome thing is that I have to perform it for performance. It makes no sense if I set a timer to do that.
I try to switch both view in a single Activity but it still shows the view final called.
I'm wondering that when it sends the setContentView msg to somewhere to show, and do next code immediately.
So i have to know the time when it shows the content view?
onion
Freshman
Freshman
 
Posts: 3
Joined: Thu Jul 17, 2008 7:15 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 3 guests