¡@

Home 

2014/10/16 ¤W¤È 08:19:52

android Programming Glossary: myfragmentactivity

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

http://stackoverflow.com/questions/14177781/java-lang-illegalstateexception-can-not-perform-this-action-after-onsaveinstanc

ft @Override protected void onPreExecute Log.v MyFragmentActivity onFriendAddedAsyncTask onPreExecute dummyFragment DummyFragment.newInstance.. @Override protected void onPostExecute String result Log.v MyFragmentActivity onFriendAddedAsyncTask onPostExecute ft fm.beginTransaction.. protected String doInBackground String... name Log.v MyFragmentActivity onFriendAddedAsyncTask doInBackground ... I get following LogCut..

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

http://stackoverflow.com/questions/14177781/java-lang-illegalstateexception-can-not-perform-this-action-after-onsaveinstanc

DummyFragment dummyFragment FragmentManager fm FragmentTransaction ft @Override protected void onPreExecute Log.v MyFragmentActivity onFriendAddedAsyncTask onPreExecute dummyFragment DummyFragment.newInstance fm getSupportFragmentManager ft fm.beginTransaction.. ft.add dummyFragment dummy_fragment ft.commit @Override protected void onPostExecute String result Log.v MyFragmentActivity onFriendAddedAsyncTask onPostExecute ft fm.beginTransaction ft.remove dummyFragment ft.commit @Override protected String.. fm.beginTransaction ft.remove dummyFragment ft.commit @Override protected String doInBackground String... name Log.v MyFragmentActivity onFriendAddedAsyncTask doInBackground ... I get following LogCut 01 05 23 54 19.958 V MyFragmentActivity 12783 onFriendAddedAsyncTask..