如何在firebase onChildChange中从Intent中调用相同的活动?
@Override
public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
     try {
        Intent i= new Intent(PlaceholderFragment.this,PlaceholderFragment.this);
     }
     catch (Exception e){}
}如何从Intent中调用相同的活动?
发布于 2020-01-12 15:00:02
Intent i = new Intent(getActivity, YourActivity.class);
i.startActivity();或者,您可以简单地使用:
getActivity().recreate();https://stackoverflow.com/questions/59701656
复制相似问题