Re: [android-developers] new Fragments

2011-06-19 Thread New Developer
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()

Re: [android-developers] new Fragments

2011-06-19 Thread Dianne Hackborn
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

Re: [android-developers] new Fragments

2011-06-19 Thread New Developer
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

Re: [android-developers] new Fragments

2011-06-18 Thread New Developer
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:

Re: [android-developers] new Fragments

2011-06-18 Thread New Developer
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);

Re: [android-developers] new Fragments

2011-06-18 Thread Dianne Hackborn
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:

[android-developers] new Fragments

2011-06-17 Thread New Developer
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

Re: [android-developers] new Fragments

2011-06-17 Thread Dianne Hackborn
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

Re: [android-developers] new Fragments

2011-06-17 Thread New Developer
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:

Re: [android-developers] new Fragments

2011-06-17 Thread Dianne Hackborn
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