To Dianne
Thank you for all your support
I have managed to get the fragment concept working
I call show()
FragmentTransaction fMgr = getFragmentManager().beginTransaction();
fMgr.show(visitScreen);
fMgr.commit();
And then when done I call hide()
That log is just a warning, and unrelated fragments, and not causing such an
issue.
Let's still step back -- are you actually having a fragment displayed at
all? Make sure you are actually getting it displayed before then trying to
hide and show it. (And after adding a fragment starts out shown
Thanks
Yes it is displaying (the first time) then I hide it so I can use that
portion of the screen for other things
and then I try to go back an reshow it But it gives the error and then
shows nothing.
So it will show and then hide the first time around, but will not show
I have the SDK Updater done and installed the Compatibility package
When I putextends FragmentActivity
I still get FragmentActivity cannot be resolved to a type
With the offer to change to Fragment
and ideas
thanks again
On Jun 18, 2011, at 1:11 AM, Dianne Hackborn wrote:
Here is what I have can you see something obvious
in my MainActivity I call the Fragment using
FragmentTransaction fMgr = getFragmentManager().beginTransaction();
VisitMenu fragment = new VisitMenu();
fMgr.add(R.id.menu2, fragment);
fMgr.commit();
fMgr.show(fragment);
Committing a fragment transaction is asynchronous. You should let it run
and do its thing; don't call getView() outside of the fragment's own
lifecycle.
Have you tried any of the API demos? There are lots of them. I suggest
starting off with one of those known working demos, found here:
Could someone please clarify the method in which to use fragment
There is a Main Activity which has a fragment element within it's layout
this fragment element is then loaded to a class the extends Fragment
But does the fragment class then have it's own activity ? or
how do you access the
Blog posts:
http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html
http://android-developers.blogspot.com/2011/03/fragments-for-all.html
SDK documentation:
http://developer.android.com/guide/topics/fundamentals/fragments.html
Dianne
Thanks and yes is was your blogspot article at the bottom that refers to
FragmentActivity
But I can not find this anywhere and when I type it , it is unknown
thanks again
On Jun 17, 2011, at 7:57 PM, Dianne Hackborn wrote:
Blog posts:
Xav's blog post explains how to get the support library, which has
FragmentActivity, through the SDK updater:
http://android-developers.blogspot.com/2011/03/fragments-for-all.html
On Fri, Jun 17, 2011 at 8:16 PM, New Developer secur...@isscp.com wrote:
Dianne
Thanks and yes is was your
10 matches
Mail list logo