how to run Specific activity in android emulator?

后端 未结 6 1562
無奈伤痛
無奈伤痛 2021-01-29 00:36

i have created 4 activities in eclipse now i want to run activity 1, 2,3 ,4 repectively one by one in emulator for testing.

can any one guide me how can i run those all?

6条回答
  •  悲&欢浪女
    2021-01-29 01:12

    Go to the Android Manifest file under your workspace root and double click on it to open. Go to the AndroidManifest.xml tab and change the name of the first activity to whatever activity you want to launch at run. Also make sure you rename that first activity to the other activity so ADT doesn't throw errors. Basicall, switch their names in the xml file. I had to do it because I wanted to test each activity individually before linking them. Let me know if you have any other question.

提交回复
热议问题