Final Code
Added Statup code for Android