android - AsyncTaskLoader not initialized after screen rotation -
i using recyclerview getting data adapter gets data trough asynctaskloader. runs fine until rotate screen portrait landscape. @ point nullpointer exception when using .forceload(); on asynctaskloader have absolutelly no idea why fileloader null when same oncreate method called regardless of orientation , works on portrait , doesnt on landscape. here code: package sk.tomus.filescoper; import android.content.activitynotfoundexception; import android.content.intent; import android.content.sharedpreferences; import android.net.uri; import android.preference.preferencemanager; import android.support.v4.app.loadermanager; import android.support.v4.content.loader; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.support.v7.widget.gridlayoutmanager; import android.support.v7.widget.linearlayoutmanager; import android.support.v7.widget.recyclerview; import android.util.log; import android.view.view; import android.widget.toast; import java.io.f...