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 <hack...@gmail.com>
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 toff...@gmail.com » Thu, 11 Jun 2009 00:44:37 GMT


 Hi,

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


/ Toffer





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Android Implementation of Multitouch

Hi,

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!

Cheers,

m

-- 
.

2. select (mac) query problem.

Hi, I want to retrieve int  value from cursor

Cursor c = sampleDB.rawQuery("select max(RoomSuffix)from
RoomTable",null);

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

if (c != null )
                                {
                                        if  (c.moveToFirst())
                                        {
                                                do
                                                {
                                                        System.out.println 
("Inside do");
                                                        System.out.println 
(c.getColumnCount());    //here i
get 1
                                                        suf = 
c.getInt(c.getColumnIndex("RoomSuffix"));//
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
failed
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
android.database.CursorWindow.getInt(CursorWindow.java:434)
11-29 12:07:28.925: WARN/System.err(956):     at
android.database.AbstractWindowedCursor.getInt(AbstractWindowedCursor.java:
93)
11-29 12:07:28.925: WARN/System.err(956):     at
com.monarch.home.AddRoom.checkRoomExist(AddRoom.java:110)
11-29 12:07:28.944: WARN/System.err(956):     at
com.monarch.home.AddRoom.insertToRoomTable(AddRoom.java:142)
11-29 12:07:28.954: WARN/System.err(956):     at
com.monarch.home.AddRoom$1.onItemClick(AddRoom.java:74)
11-29 12:07:28.966: WARN/System.err(956):     at
android.widget.AdapterView.performItemClick(AdapterView.java:284)
11-29 12:07:28.974: WARN/System.err(956):     at
android.widget.ListView.performItemClick(ListView.java:3285)
11-29 12:07:28.974: WARN/System.err(956):     at
android.widget.AbsListView$PerformClick.run(AbsListView.java:1640)
11-29 12:07:28.996: WARN/System.err(956):     at
android.os.Handler.handleCallback(Handler.java:587)
11-29 12:07:29.005: WARN/System.err(956):     at
android.os.Handler.dispatchMessage(Handler.java:92)
11-29 12:07:29.005: WARN/System.err(956):     at
android.os.Looper.loop(Looper.java:123)
11-29 12:07:29.013: WARN/System.err(956):     at
android.app.ActivityThread.main(ActivityThread.java:4363)
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
java.lang.reflect.Method.invoke(Method.java:521)
11-29 12:07:29.044: WARN/System.err(956):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-29 12:07:29.053: WARN/System.err(956):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
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