Executing Script in java class Android Development

view story

http://stackoverflow.com – I'm currently making an android app. This app will have to execute a script when a certain button is clicked. The problem is, I have no idea how to execute this script. Can somebody please help me? If you could, just give me the basic code needed for this. You could also show me how to execute it in the On clicked switch and case (I may use switch and case. I'm not sure yet). But all I'll really need is the code to execute a script, and, if you don't mind, explain it a little bit. Thanks! (HowTos)