codereviewanskquestions
codereviewanskquestions

Reputation: 13998

how do I run Android test project from another android application

I created an Android test project using instrumentation and it works find with eclipse running as Android Junit test. It also generated apk file.

My question is how do I run this test from another android application instead of from eclipse. For example, if the test project is named T and I have another Android application named A. Then I would like to open up T from A.

Thanks in advance..

Upvotes: 1

Views: 158

Answers (2)

Zwiebel
Zwiebel

Reputation: 1615

I think it will be good if you try to call the appropriate intent on a button click or on whatever you want to start the program. For example: startActivity(new Intent("com.yourprogram.T") I'm not sure but i think it will works.

Upvotes: 1

Billy Pham
Billy Pham

Reputation: 138

Why do you need to open Test project from an app on Device. I dont think you can do it because Android does not allow any app to inject action or call functions from other apps.

Upvotes: 0

Related Questions