views:

37

answers:

1

I am not getting is this is right way to solve problem or not... Situation is... I am creating Library for Android project..

Activity is declared in the Library Project..As it will be reusable in different projects. Lets Name it ActivityA

ActivityA is using images which are Project Specific.. I have added images in Main Project...

I am not getting how to access resources from Main project in the Library

Thanks,

+3  A: 

Put a copy of all relevant resources in the library. It's perfectly legal. If you want to override them in the actual app, you can. If the IDs clash, the end product will use the resources from the app.

Seva Alekseyev
Let me try that... I will comment after that.. Thank you..
KiranThorat
it Worked... Thanks
KiranThorat