File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Can home screen icon be selected at install time? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Can home screen icon be selected at install time?" Watch "Can home screen icon be selected at install time?" New topic
Author

Can home screen icon be selected at install time?

Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

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.

Thanks in advance!

Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

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.


Steve
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Yeah, I figured something like that.

Thanks for confirming what a PITA this will be.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can home screen icon be selected at install time?