How to fix “Can not perform this action after onSaveInstanceState” on Android Fragments

Recent I’ve this bug on my project. This bug comes when app awake from sleep. I’ve spent a lot of time to fix it. And finally I got the solution. My project is Activity with Fragments. The error text is: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3113) Read more…

How to create custom groupIndicator for ExpandableListView group

Here is tutorial How to create custon groupIndicator for ExpandableListView in Andriod. Here is screenshot: To do it you need: 1. Create 9-patch images for normal and expanded state 2. Create selector with this 9-patch images <selector xmlns:android=”http://schemas.android.com/apk/res/android”> <item android:state_expanded=”true” android:drawable=”@drawable/group_indicator_expanded” /> <item android:drawable=”@drawable/group_indicator” /> </selector> 3. Set this selector Read more…