Answer the question
In order to leave comments, you need to log in
Passing data from Activity to Fragment?
Greetings!
Got a Question!
Now I sit and understand someone else's code, and rewrite it. There is a problem It is necessary to update the list in the fragment when push notification arrives (pull the function). Now I am passing the given to MainActivity from push by means
Intent intent = new Intent(this, MainActivity.class);
public void onNewIntent(Intent intent)
{
}
Answer the question
In order to leave comments, you need to log in
And what prevents you from creating a broadcast receiver in a fragment?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question