last day (17 days later) » 

4:24 PM
0
Q: Not displaying navigation drawer with TabHostFragment

SkizoFew days ago I implemented TabHostFragment inside my NavigationDrawerMenu, the problem is when I try to open the NavigationDrawer it does not. My app does not crash but it does not open the NavigationDrawer and I don't know what I'm missing. I guess the problem is with the setContentView(), becau...

 
where have you reached with this so far ?
 
Can't find the way to get the navigation Drawer when I'm on Tabhost layout, it's obvious because it doesn't contain any navigation drawer, but as I said... My question is how to "link" those two Layouts in one (Is what I thought), if exists other way to do it I don't find it...
 
As I understand, you have added code for Navigation Drawer, but it is not working in this Activity, right ?
 
Yep, I don't know how to connect the Tabhost Layout with Activitymain Layout, because they are two different things
 
can you post XML of Activity layout ?
 
4:24 PM
@ZygoteInit See my edit :)
Did you see my edit?
 
hmm ... so basically, when you click on a list item of navigation drawer, you want to show TabHostFragment, am I right ?
 
You are right
on my ShowDialog I've got 0 because it's the first item on my list so it shows my TabHostFragment, but at the time when I want to click on my Menu it doesn't oppen
 
ok ... hang on
 
Okay
 
4:46 PM
are you there ?
 
Yes
 
I've posted an answer ...
can you try it out ?
 
Yes, hold on :)
 
wait ....
wait wait
!!!!!!!!!
 
Yes i know what you want to say to me
I think is the same thing that I was going to say to you
That works perfect, but when I go to position 3 for example, and then I return on position 0, it crashes
 
4:55 PM
okay
so what is the error in logcat ?
 
Where do you want the LogCat error
 
can you post it in the question ?
 
yes
See my edit
Did you understand where it crashes?
 
yes
when you return to it
 
Did you see the LogCat error?
 
5:02 PM
yes
 
Any idea why is it crashing?
 
it seems to be a problem with the FragmentTabHost class
I am looking for a solution, hang on
 
Thank you so much, I'll wait here
 
are you there
 
Yes
 
5:12 PM
Skizo, this crash is a problem in the Android framework itself
see my edited answer
 
Buf.. there is no solution then for this?
 
like I said, I am still looking for a workaround ...
and I expect you to work with me on this :)
 
I am :)
 
you too can look for a solution
good
:)
you can start by studying those links I posted
 
But... why on Play, Youtube, and app like that it doesn't crashes?
They don't use TabHostFragment?
 
5:15 PM
in those apps I don't know if they are using FragmentTabHost inside NavigationDrawer ...
first take a look at those links ...
those people are facing the same problem
 
Yes, i'm gonna take a look
 
they have not given a direct solution which we can implement right away
so we need to think about it and study it deeper
 
Yes... I'll try
I need to study it first
 
I have not faced this problem in my work before ... its something new for me too :)
 
But there's another way to use instead of TabHostFragment another class?
Or another stuff similar?
 
5:17 PM
I was thinking the same thing ...
There is a class called TabHost ...
 
Otherwise... I'll try to understand why it is crashing
Yep, but... Could I implenent it on my NavigationDrawer?
 
but it is very old ... FragmentTabHost is the new one which we are supposed to use now
Yes I too have doubts ...
 
Yes... better study the problem and solve it by ourselves :)
 
about that
 
Right? :P
 
5:19 PM
because TabHost does not really support Fragments
yes :)
So I will look for a solution to this ...
Send me a reminder if you get impatient :)
and don't worry ...
 
Yes... I'll try I don't want to disturb you anymore you helped me so much, that's why I wanted to put a bounty and give you all of the reputation that I can give to a person because you are amazing..
Trust me...
I'm gonna studdy about this problem
And if you are interesed and you find the solution, please let me know so I can solve this bug :P
 
yes sure :)
I have one request ...
 
What?
 
I think you should create a separate question for that error ...
because that error is our real problem now ...
 
You think so?
 
5:22 PM
we have solved the original question ...
all we need to do is find a solution for this bug ...
 
Yes.. I think so... I'm gonna wait 20h to start a bounty and I'll give to you because you deserve it
 
and who knows, maybe someone else might have an answer even before you or me !!!
 
And I'm gonna create another post... but always when I post something someone is downvoting me... I don't get it, but whatever... I'll try :)
 
oh thank you :)
ok wait ...
people downvote, right ??
 
Yep, only because my quesiton is long
And there is too much code
 
5:25 PM
then we will first sit together and write the question
 
I post my effort but they still downvoting me
 
both of us
and then post it
 
Yes! Do it
Let's do it*
 
so that people can see that it is a valid question
 
Great idea
 
5:26 PM
what do you say we do this tomorrow ?
is that okay ?
 
yes of course
 
I'm a bit tired right now ...
 
I have a question..
 
yes sure
 
If I vote a bounty I can give it to you when I want or I have to wait until bounty ends?
 
5:28 PM
to be honest, i don't know about this ...
I've never created a bounty question ...
I'll have to read about it in the rules section ...
 
Okay, the thing is that I want to give you the bounty rep
:)
 
:)
thats very kind of you :)
 
You deserve it :)
Well... tomorrow we type the question?
 
although that will only happen if we solve that question first !!!
:)
yes i guess tomorrow ...
 
What question? :)
 
5:30 PM
or i don't know, can you put a bounty on this question
 
My old issue?
 
the one that I answered just now
 
in 22 hours
 
oh ... ok
 
Shall we wait? or you want to upvote you right now? :)
 
5:31 PM
when do you have to submit your project ??
 
I can wait :)
 
ok ...
 
But if you can't, let me know and I accept the question now! :)
 
I think its best to create a new question, which we will do tomorrow
and you can put bounty on that question if you like
 
Ok so I'll accept your question now? :D
ahh
okay okay
 
5:34 PM
yes go ahead!
 
I want to put a bounty for you, but If you prefer to create a new question with that bug and solve this problem asap I accept you, but I want to vote a bouty for you :P
 
:)
i think you can accept this today's question
because we have solved the first problem
 
Okay :)
 
for that second problem we'll create a new question ...
 
Done ^^
 
5:37 PM
and if you wish you can put a bounty on that ... :)
 
Okay, I understand now
 
I doubt if anyone will be able to solve the second question ...
because no one has come up with a solution for that
 
This comunity have lot of people :P
 
so you and I may be the first!
yes!!!
 
To much experience...
 
5:38 PM
so someone else may solve it before us, so that is good for you :)
 
So SURE we will solve this bug!
 
yes I will try my best ... but I expect you to work with me on it :)
hopefully we'll get the answer ... :)
so good night, dear :)
 
We will, you'll see
 
and see you tomorrow
 
18:40 here :P
Good night for you :P
See you tomorrow!
 
5:40 PM
send me a reminder if I forget :)
bye ...
 
I will... this chat will be deleted?
 
I think it can be saved ... wait
 
You can Toggle it as a favorite room...
Maybe it is the best solution, isn't it?
 
where ??
i'm not able to save it :(
 
wait I'm gonna take a pic
Do you see this?
Click on the yellow star
 
5:47 PM
yes
 
so click it I think it saves the chat
so we can talk tomorrow
 
yes
 
okay see you tomorrow :)
gn
 
thanks and bye ... see you tomorrow
 
 
3 hours later…
8:56 PM
I read about TabHostFragmentv13....
And I'm using v4
 

  last day (17 days later) »