android - Fragment on addToBackStack("") duplicating values on back press -


i have fragment addtobackstack("") move when press button. main activity list view double data when press button.

question: why listview (mainactivity) doubling it's value/data on press of , how fix this?

here's code using proceed next fragment , move state.

getfragmentmanager().begintransaction().addtobackstack("sd").replace(r.id.mainlayout, mfragment).commit(); 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -