I have the following code I would like to execute in my onActivityResult() method:
InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
InputMethodManager.showSoftInput(viewHolder.CertainEditTextView,InputMethodManager.SHOW_IMPLICIT);
This snippet should bring up the keyboard, allowing the user to type in to CertainEditTextView.
The issue: It does not work, and my theory is that this is because it runs before the Activity is fully loaded. I think this because if I run this code in a separate thread, after a delay of 1000ms, it works perfectly. This gives time the activity to load. This is not a real solution, and I am looking for a way to run this as soon as the Activity is done loading. onResume() would be a perfect method, but I only want to run this code snippet after onActivityResult is called.
All help is greatly appreciated.