OnActivityResult method is deprecated, what is the alternative?
问题 Recently I faced the onActivtyResult is deprecated . what should we do for handle it? any alternative introduced for that? 回答1: A basic training is available at developer.android.com. Here is an example on how to convert the existing code with the new one: The old way: public void openSomeActivityForResult() { Intent intent = new Intent(this, SomeActivity.class); startActivityForResult(intent, 123); } @Override protected void onActivityResult (int requestCode, int resultCode, Intent data) {