Võ Quang Hòa
Võ Quang Hòa

Reputation: 3024

Android: How to run another program from my program and send argument to it

I'm writing a small program, it can show and manager all files and folder in the android mobile. Now I get a problem need to help, when I click to a file icon, example a audio, i want the audio player can run and play it. Who can help me

Upvotes: 2

Views: 609

Answers (2)

David
David

Reputation: 2131

using intent you can invoke another application for example

Intent i = new Intent(CurrentClass.this, NewClass.class);
startActivity(i);

For more information refer following link link text

Upvotes: 2

Brian Beckett
Brian Beckett

Reputation: 4900

In Android, you use Intents to launch other programs.

Upvotes: 2

Related Questions