使用android系统中一个库项目时出现问题项目、问题、系统、android

2023-09-07 04:36:31 作者:未燃尽的、烟

我公司开发的项目。这是工作的罚款。所以我想用这个项目作为其他项目库。所以我创造了这个项目作为一个图书馆。后来我创造了新的应用程序,并添加该库项目到我的新应用程序项目。然后我运行应用程序。突然在活动堆栈中的previous屏幕会自动完成。我没有得到为什么发生这种情况。任何一个有关于这个问题的想法,请给我建议

I have developed a Project. it is working fine. so i want to use this project as a library for some other project. so i have created this project as a library. Later i have created new Application and added this library project to my new Application Project. then i run the app . suddenly the previous screen in the activity stack is finishing automatically. i am not getting why this is Happening. Any one have the idea about this issue , Please suggest me

推荐答案

即使它添加为库项目。结果你仍然需要在新的项目中添加(从库项目)您呼叫/使用活动的Andr​​oidManifest.xml

Even though it is added as a library project. You still need to add the activities that you are calling/using(from the library project) in your new projects AndroidManifest.xml

虽然我必须说,你应该考虑你的展示和logcat中调用code。

Though I must say, you should consider showing your logcat and calling code.