We're cobranding our app, and our partner wants their icon to appear on the homescreen rather than ours. That's easy enough to do in the Manifest, but that means separate builds. Is there anyway to 1) Invoke some of my app's code at install time (say, to query some information on the phone that tells my app it's being installed on a partner phone), and then 2) Act on that code to select which icon to display on the home screen.
I'm guessing that neither of these is possible, and so far my searching supports that theory. I'll probably have to end with separate builds anyway, but the less stuff I have to change in the codebase just to distribute via one channel vs. another, the better.
I don't think you can. I think the normal approach is to put all your code in one library project, then have separate application projects with different manifests, icons, and styles as needed, and which do nothing else but call into the library's starting point.