I am writing code to show the result of one activity in another I have to use startActivityForResult command but android studio is showing it as deprecated What should I do? Is it something which can effect my code or is it ignorable?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
FloatingActionButton addDetailsButton = findViewById(R.id.addButton);
addDetailsButton.setOnClickListener(view -> {
Intent intent = new Intent(MainActivity.this, addActivity.class);
startActivityForResult(intent,REQUEST_DETAILS_CODE);
});```