Removing battery icon from the Home screen

by pysup » Fri, 02 Apr 2010 23:01:21 GMT


Sponsored Links
 Hello All,

I am trying to remove the battery and RSSI bar icon from the Home
screen but I dont know where to look for it. Is it in the packages/
apps/launcher?

Thanks

-- 



Removing battery icon from the Home screen

by pysup » Fri, 09 Apr 2010 22:02:03 GMT


 Managed to do it by changing the visibility

service.setIconVisibility(mBatteryIcon, false);

in frameworks/base/services/java/com/android/server/status/
StatusBarPolicy.java





-- 


Sponsored Links


Other Threads

1. about display frame with surfaceflinger

Hi:

      I have implemented dislay frame with pushbuffer type of
surfaceflinger on SDK1.0.
      1. Creat a surface holder and pass the surface to JNI;
      2. Declare memerybase and call registerbuffers() in JNI to init
surfaceflinger;
      3. Copy local frame into memerybase;
      4. Call postbuffer() to display.
      But when migrate my code on the SDK1.5, it cannot work well.
There are some error  as following "Permission failure:
android.permission.ACCESS_SURFACE_FLINGER ", and i have declare the
"android.permission.ACCESS_SURFACE_FLINGER" in my
AndroidManifest.xml.
      Why and how can i solve it?

Best Regards
Paullee

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

2. Passing pointer to AsyncTask that changes GUI to onRetainNonConfigurationInstance?

Good morning,

I'm a little confused how to correctly handle tasks (AsyncTask) when
the screen orientates.

The documentation states that the object passed to
onRetainNonConfigurationInstance should have no refererence to the
destroyed activity/context. When i pass a pointer to a AsyncTask it
shouldn't have such a reference.

But in the AsyncTask onPostExecute() method (which is executed in the
UI thread) the result of the task should be displayed in the fields of
a activity.

How can i display the result of a AsyncTask in a activity when i may
not use anything that references to the destroyed activity?

For example i can't pass my EditBox to the constructor of the
AsyncTask, because it is a reference to the activity that will be
destroyed, but i do want to put the result of the task in that
EditBox ;-)

I buzzles me.

One solution comes in mind and that is to save the pointer to the task
in onRetainNonConfigurationInstance() and restore it in onCreate().
Then call a method on the task class and pass a pointer to the new
EditBox. But it isn't 100% save, cause while the screen is rotating
(things are destroyed/created) the task might finish and cause
unpredictable results.

Can anybody give me advice on this subject?

Kind regards,
Twan
--~--~---------~--~----~------------~-------~--~----~

3. Where do i put 45 MB Audio Files.

4. which junit to use when creating reusable library for Android apps?

5. sleep in Android Bluetooth event thread

6. setText for EditText is not working in 1.5

7. AndCooper Build Tool Release