1

I want to test all the activities of my application by calling outside from the application.

Is it possible? Currently I can only call the main activity from adb. Is it possible to launch other activity?

One solution might be in the android manifest I declare all activities as main activity. Is it feasible?

gnat
  • 6,213
  • 108
  • 53
  • 73
P basak
  • 4,874
  • 11
  • 40
  • 63
  • possible duplicate of [How to start an application using android ADB tools?](http://stackoverflow.com/questions/4567904/how-to-start-an-application-using-android-adb-tools) – kabuko Oct 12 '12 at 20:06
  • My goal is not to start an application, rather start from a certain activity. – P basak Oct 12 '12 at 21:51
  • Right, but the answer covers starting a specific activity of an application from ADB. – kabuko Oct 12 '12 at 21:53
  • yes I saw that later, but for more specific title i think this question should stay as developers can get it directly from google search. – P basak Oct 12 '12 at 21:55

1 Answers1

1

You can launch any activity from adb shell

adb shell am start -n package-name/activity-1-name
Donal Fellows
  • 133,037
  • 18
  • 149
  • 215
Durairaj Packirisamy
  • 4,635
  • 1
  • 21
  • 27