but when i rotate the phone into landscape, it just adds up the fragment.

Output :

is there any way that i can fix this? I've been reading some questions about dealing rotations on run time, but their solutions are to disable the orientation. Some also say that to use AsyncTask functions on dealing with this matter. I am new on android and i am not yet familiar to other android libraries. thanks for answering.