1

I am designing an app for various platforms, in which the user is able to select his choice from list of XYZ items and the server responds me the details of the selected item along with the icon image. Now is this possible to change the icon image dynamically in standard, released signed application?

I want to implement this approach in Android, iPhone, BlackBerry Apps. Is there a way to achieve this approach?

Thanks, Panache

Panache
  • 987
  • 5
  • 16
  • 35
  • asking for three platforms simultaneously is overly-broad, especially without any evidence that you've looked into this yourself. you need to do research yourself, and then if you still don't know, ask three separate questions, explaining what you've found. – Michael Donohue Dec 03 '11 at 06:39
  • @MichaelDonohue First off all I'm sorry for asking them together. Actually I researched about android, iPhone and blackberry. But totally confused about, is it possible or not if so then how. I read in iPhone it is possible for jailbroken, for android there is no way with reason of code signing. So I posted this question. – Panache Dec 05 '11 at 07:29

6 Answers6

6
  1. As the poster said , on iPhone it is not possible
  2. In Blackberry, check net.rim.blackberry.api.homescreen.HomeScreen. It is possible to update an Icon from running application.
  3. On Android it doesn't seem to be possible. Check here, a similar question has been addressed
Community
  • 1
  • 1
Kiran Kuppa
  • 1,457
  • 10
  • 18
0

On iphone is POSSIBLE. Please down load and take a look at "OneTap" or "onetap" App it is free and you will see it is possible for you to do that.

0

Try this code on the onCreate method:

requestWindowFeature(Window.FEATURE_LEFT_ICON);
setContentView(R.layout.main);
setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,R.drawable.ic_launcher);

-Change "R.layout.main" with your layout source. -Change "R.drawable.ic_launcher" with your icon source.

dave
  • 1
0

I am not sure for other platforms but in iPhone its not possible.

Basically you cannot edit any resources that are included in your app bundle. So that means you cannot edit your splash screen, icons or images and sound files that you have included for notification purpose.

May be you can do that in android as it is more open platform than iphone, but if the icon file is copied some place else where you cannot get access to or don't know how to access then you will not be able to do anything about it.

Robin
  • 10,011
  • 5
  • 49
  • 75
0

On Android you can't change application icon. But you can make widget for home screen that will looks like application icon and than update it.

muffinmad
  • 641
  • 3
  • 9
0

For Blackberry:

     HomeScreen.updateIcon(Bitmap.getBitmapResource("icon.png"));
     HomeScreen.setRolloverIcon(Bitmap.getBitmapResource("rollover_icon.png"));
Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82