Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Building a Weather App - Can not perform this action after onSaveInstanceState

I'm getting the following error when I run my app:

04-18 10:44:54.165 11012-11102/com.festimom.stormypdx E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher Process: com.festimom.stormypdx, PID: 11012 java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1330) at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1348) at android.app.BackStackRecord.commitInternal(BackStackRecord.java:729) at android.app.BackStackRecord.commit(BackStackRecord.java:705) at android.app.DialogFragment.show(DialogFragment.java:230) at com.festimom.stormypdx.MainActivity.alertUserAboutError(MainActivity.java:111) at com.festimom.stormypdx.MainActivity.access$200(MainActivity.java:30) at com.festimom.stormypdx.MainActivity$1.onResponse(MainActivity.java:65) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

It's not fetching any data from the server... maybe I misconfigured something?

Whenever you post we will need to see the source code. Could you upload the source code for the files you are working on?