Search code examples
c#windows-phone-7windows-phone-7.1windows-phonexap

import xap file to windows phone project


I am new to windows phone. i need to deploy two xap files as one application to device. In fact we can say that i need to merge them. These two application should also interact between them. Can it be doable?

EDIT:

Firstly my question was the question above. But i understand that there is no way to launch another application inside the other one. So i think it would be meaningless to merge them if ever we could have done so. So i edited the question:

I have one applications xap file and i need to develop another application which should call this applications first page when user clicks some button on develeping application. The questions are:

  • Can i import xap file into developing project or xap file of it?
  • Can i import xap file as a library project to developing project?
  • Can it be done without source code of the already developed application so that i can interact it from developing application?

Solution

    • Can i import xap file into developing project or xap file of it?

    No, WP7 app can't have nested xap files - such app will fail the certification in the Marketplace.

    • Can i import xap file as a library project to developing project?

    If you can unpack the xap file (as it is a zip folder) - you can use dlls to add them as references. So, you can execute some code from that application.

    • Can it be done without source code of the already developed application so that I can interact it from developing application?

    You can try to decompile that app (using dotPeeker for example) if it's legal in your country.

    But in general the answer is no.