Question [Q][How to] port an app ?

So I have been asked this question a lot but no one answer me... I really want to know how to port an app on all devices generally and on my xperia z especially is there any way ?

THANKS
If I helped you please click button