After some tries I set the first tab to a view instead of an intent and it showed the tabs...i could also select the 2nd tab Got it. The problem was the Activity being called in the 1st tab. It closed if there was no data passed to it (bundle).
Thanks again for the help.
After some tries... I set the first tab to a view instead of an intent and it showed the tabs...i could also select the 2nd tab. Got it. The problem was the Activity being called in the 1st tab.It closed if there was no data passed to it (bundle).
Thanks again for the help.
Remove tabHost.invalidate(); Also you can drop Intent. FLAG_ACTIVITY_CLEAR_TOP I don't see any purpose of this, as you need to see the activity anyway when you click on tabs.
Sadly that doesn't help either. I had it without the invalidate method at the start. I just put it there if it would help any... – Bostjan Mar 26 '10 at 17:25 Is there something wrong with the way I call TabActivity?
– Bostjan Mar 26 '10 at 17:26 I have created a same OnCreate for my TabActivity today, it just looks the same except invalidate and I have no flags. And it worked. – Pentium10 Mar 26 '10 at 17:28 Clearing the flag didn't work either.
I set the flag since I wanted the activity to recreate each time I click on a tab (no storing history for back buttons) – Bostjan Mar 26 '10 at 17:28 Well if didn't work either, you have to look if a sample project runs fine for you. Check the >/platforms/.../samples/ApiDemo folder or create a new sample project from it. There are 3 examples for TabActivities – Pentium10 Mar 26 '10 at 17:30.
I don't see setContentView() in your Activity, which you need.
For a TabActivity you don't need. – Pentium10 Mar 26 '10 at 17:23 Exactly...extending TabActivity should provide its own layout – Bostjan Mar 26 '10 at 17:26.
I'm having some difficulties getting the TabActivity to work. The problem is that I call this class from my main activity (which is a MapActivity if it matters) and when I do the TabActivity doesn't show. It registers the click on the option menu and it even starts the intent but the screen doesn't change..it just stays on the main activity and I see in the logs that the main activity gets resumed.
Like I said...there are no errors (the classes called from the tabs exist of course), just no actions. I put some log commands into the onCreate function in the tabactivity (as you see) and they all get written into the log...I have no idea what I'm doing wrong here.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.