Imports in Android / Java code in questions and answers are often useless and make the code harder to read (have to scroll past them). Having said that, sometimes the issue at hand can be directly related to said imports. E.g. is ActionBar
referring to support library, or not?
I would not say that including imports is a "problem". In the worst case it adds context. It should not warrant an edit, let alone mass edits.
As Maroun Maroun pointed out, it depends on the situation as well. Sometimes, OP doesn't know if the imports are causing a problem. In those cases, it would be wrong to edit them out without having investigated the context.
Tunaki summed it up nicely:
Okay not to post them. But if they are there, there's no reason to remove.
ActionBar
referring to support library or not?==
instead ofequals
along with unrelated long code that does many imports.import
is needed for disambiguation, it should remain. (E.g.java.util.List
vsjava.awt.List
). In these cases, the imports make it easier for a user to reproduce the problem on their own machine.