0

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

Sravani
  • 83
  • 2
  • 7

3 Answers3

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.

Anders Metnik
  • 6,096
  • 7
  • 40
  • 79
  • Thank you for Reply. i have added in manifest. the forward flow of App is ok. but when i click Back of any Screen. i am coming out of the application. there are no previous screens in the stack – Sravani Nov 15 '12 at 08:37
  • logcat is not giving any exception. nothing it is giving – Sravani Nov 15 '12 at 08:38
  • yes i got it. beacuase of manifest file only. i am getting that problem. thanku very much – Sravani Nov 16 '12 at 05:57
0

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

Kalai.G
  • 1,610
  • 13
  • 22
0

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

Sravani
  • 83
  • 2
  • 7