I installed android studio on my laptop i5 processor and 4GB ram but it is real slow and it also slows my laptop down. I browsed some forums and read the same complaints there too. Does anyone know a good alternative or do i have to resort to programming on the mobile device itself ? Thx for comments and help fellas

Android Studio is the fastest IDE around. You can of course do things the hard way and write all your code in a text editor like VI or Notepad and then use commandline compilers.

Most likely if it's slow on your machine there's something else wrong with your machine.
I'm running the same IDE (IntelliJ) on my laptop air which has similar hardware specs and it's blazing fast.