Thanks Blake. However when I try to replace one fragment with another using
this code, I am still not able to get backstack stuff working. Here is my
new code-
private void handleRuralRoutesClick(){
FragmentTransaction xact=
getSupportFragmentManager().beginTransaction();
xact.replace(R.id.fragment_content, new
CountyListFragment(),COUNTY_TAG);
xact.addToBackStack(null);
xact.commit();
}
I am using supportfragmentmanager to support android 2.2. Will that make a
difference?
Thanks
Apurva
On Sun, Sep 30, 2012 at 10:42 AM, G. Blake Meike <[email protected]>wrote:
> This code works:
>
>
> https://github.com/bmeike/ProgrammingAndroid2Examples/blob/master/SimpleFragment/src/com/oreilly/demo/android/pa/simplefragment/SimpleFragment.java
>
> G. Blake Meike
> Marakana
>
> The second edition of Programming Android is now available:
> http://shop.oreilly.com/product/0636920023005.do
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en