Changing the application icon at runtime?

by pehrlo » Wed, 10 Jun 2009 03:37:00 GMT

Sponsored Links
 Does somebody know if this is possibly in 1.5?

From: hackbod <>
Date: 19 Okt 2008, 20:06
Subject: How can the app icon be changed at runtime
To: Android Developers

Sorry, application icons can't be changed dynamically in 1.0.


Changing the application icon at runtime?

by » Thu, 11 Jun 2009 00:44:37 GMT


I'm also trying to find out if this is possible to do. Anyone who

/ Toffer


Sponsored Links

Other Threads

1. Android Implementation of Multitouch


I have a question; why doesn't the android browser pinch zoom multi
touch feel quite right?

Answer? Because it's weird!

Here's the thing: pinch zoom is not a gesture, it's an interaction
with the page. So, what it shouldn't be is measuring the change in
distance between your fingers and then scaling what your're viewing by
a certain amount. What it should be is pinning your fingers to places
on the page, and as they move scaling *and moving* the page in order
to keep your fingers on the same places on the page. This is what
happens (give or take) on the gallery - so why not on the browser.

This is particularly useful when you want to zoom in on something in
one corner of the page - you stick your fingers on the corners of it,
and then move them to the far sides of the screen. Unfortunately, with
the current implementation, it zooms in on the centre of the page
(actually, somewhere in the direction of where your fingers are, but
not quite there!), and you're left having to then scroll after
zooming. Unnecessary.

I hope that makes sense to someone who thinks it'd be worth
implementing... I certainly think so!




2. select (mac) query problem.

Hi, I want to retrieve int  value from cursor

Cursor c = sampleDB.rawQuery("select max(RoomSuffix)from

and here RoomSuffix is an int, but when I tried to retrieve value as

if (c != null )
                                        if  (c.moveToFirst())
("Inside do");
(c.getColumnCount());    //here i
get 1
                                                        suf = 
here it throws Exception

                                                while (c.moveToNext());

and logcat output is

11-29 12:07:28.835: ERROR/CursorWindow(956): Bad request for field
slot 0,-1. numRows = 1, numColumns = 1
11-29 12:07:28.843: WARN/System.err(956):
java.lang.IllegalStateException: get field slot from row 0 col -1
11-29 12:07:28.894: WARN/System.err(956):     at
android.database.CursorWindow.getLong_native(Native Method)
11-29 12:07:28.904: WARN/System.err(956):     at
11-29 12:07:28.925: WARN/System.err(956):     at
11-29 12:07:28.925: WARN/System.err(956):     at
11-29 12:07:28.944: WARN/System.err(956):     at
11-29 12:07:28.954: WARN/System.err(956):     at
11-29 12:07:28.966: WARN/System.err(956):     at
11-29 12:07:28.974: WARN/System.err(956):     at
11-29 12:07:28.974: WARN/System.err(956):     at
11-29 12:07:28.996: WARN/System.err(956):     at
11-29 12:07:29.005: WARN/System.err(956):     at
11-29 12:07:29.005: WARN/System.err(956):     at
11-29 12:07:29.013: WARN/System.err(956):     at
11-29 12:07:29.027: WARN/System.err(956):     at
java.lang.reflect.Method.invokeNative(Native Method)
11-29 12:07:29.035: WARN/System.err(956):     at
11-29 12:07:29.044: WARN/System.err(956):     at
11-29 12:07:29.053: WARN/System.err(956):     at
11-29 12:07:29.053: WARN/System.err(956):     at
dalvik.system.NativeStart.main(Native Method)


3. Alsa + audioflinger latency for audio when playing over AudioTrack + MODE_STREAM

4. How is CallLog updated when Contact information changed?

5. Theter d cyanogen mod...

6. Camera 360's Ghost templates [was: Aplikasi ghost radar]

7. Galaxy s update ke froyo