I have created a project as library that uses MapActivity but when it is referenced in another project it cannot link with that project. But if the same project is used with only Activity then everything works properly. The project is linked properly and the activity of the library gets called from other project.
The error that shows up in the logcat is Unable to resolve superclass of packagename/SampleLibActivity; (13)
I really do not understand the reason of error only when extending with MapActivity. Are there any limitations with creating library project?
I did a silly mistake of not including uses-library inside application tag.
Hope this helps out someone else too.