问题
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
回答1:
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
Though I must say, you should consider showing your logcat and calling code.
回答2:
Have you set reference to your project? Rightclick on your project-properties-android-islibrary mark it and add
回答3:
android:noHistory="true". beacause of this attribute. stack history was removed. by removing this attribute it working fine
来源:https://stackoverflow.com/questions/13393327/issues-when-using-a-library-project-in-android