I can open my Arduino and Android Studio IDE irrespective of my current path by these commands
~/arduino/./arduino
~/android/./studio
I've created aliases for both of them on my .bashrc file and its working fine.
I want to know if there is a more efficient way of solving this kind of problems?
~represents you home directory in your system. That is why you can open those programs from anywhere. But, if you login as another user, this won't work as~would then represent to that user's home directory.If you want you can replace
~by/home/<yourUsername>(the absolute path to your home directory) or even/rootdepending upon your installation settings.