I try to avoid giant classes of activity that are difficult to complete, but the platform seems to complicate it. Performing almost anything requires activity or context - they can be stored in a helper class, but, unfortunately, calls like startActivityForResult, for example, do not accept a sperm listener, but always return to the same action when overridden with the provided integer code - so this means that separation of problems is difficult - the main activity is to know about the helper class and send it to the helper class based on the request code - and, of course, this request code must be unique, so that the leak abstractions. Why not specify a listener for each call, thereby avoiding scheduling and the need for unique request codes? Any other ways to cut this? thanks
thelazydogsback
source share