I am making an app that has a grid of images with text and each one opens a different activity. It works fine but just for design purposes I want to replace my if-else
if-else
Using a break statement after each case should fix the problem. I would also use a default statement as well after the last case.