Sravani
Sravani

Reputation: 83

Issues when using a library project in android

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

Upvotes: 0

Views: 237

Answers (3)

Sravani
Sravani

Reputation: 83

android:noHistory="true". beacause of this attribute. stack history was removed. by removing this attribute it working fine

Upvotes: 0

Kalai.G
Kalai.G

Reputation: 1610

Have you set reference to your project? Rightclick on your project-properties-android-islibrary mark it and add

Upvotes: 0

Anders Metnik
Anders Metnik

Reputation: 6237

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.

Upvotes: 1

Related Questions