Can i use the implements and the extends at the same time? Because I need to inherit something on the other class while i used implements on the same class.
You can only extend one class but you implements multiple interfaces as your need.
Yes you can but you need to write your extends
before implements
:
public class DetailActivity extends AppCompatActivity implements Interface1, Interface2
Any number of interfaces can be implemented, if more than one then each needs to be separated with a comma.