I have the following code in my onActivityResult for a fragment of mine:
onActivityResult(int requestCode, int resultCode, Intent data){
//other code
P
As you all know this problem is because of on onActivityResult() is calling before onstart(),so just call onstart() at start in onActivityResult() like i have done in this code
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
onStart();
//write you code here
}