I am using someone else’s code and they have the following code
Intent j = new Intent();
j.setClass(this, ReplaceActivity_.class);
but the class they have is “ReplaceActivity”. Is there a reason for the “_” after the ReplaceActivity? I am using intelliJ and it gives me a compiler error.
It’s for a framework called AndroidAnnotations. The framework reduces boilerplate code by generating bytecode at compile time. The generated Activities have an underscore appended to their names, which is (presumably) why you see this.