How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

by Romain Guy » Sat, 07 Mar 2009 17:24:09 GMT


Sponsored Links
 > Do you mean that onDraw(Canvas) will ignore the drawing call in it

That's correct.


It will be drawn.

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



Other Threads

1. Settings.Secure.getInt got wrong value in AdbSettingsObserver

Hi, you can't change secure settings with SDK applications.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

2. How to get Application Name from the processid and processname?

I am writing a small program to list down the name of the applications
that are running in the background. I have tried achieving this for
the whole afternoon but to no clue on how to get this done. So far, I
have only managed to get the processname, please advise on how I can
retrieve the name of the Application and store in the array items.

Below is a sniplet of my code.

        Context context = getApplicationContext();
        Resources appR = context.getResources();
        ActivityManager actmgr=(ActivityManager)context.getSystemService
(Context.ACTIVITY_SERVICE);
        List<RunningAppProcessInfo> appList =
actmgr.getRunningAppProcesses();

        CharSequence[] items = new CharSequence[appList.size()];
        Vector <Process>allProcesses = new Vector <Process>();

        for (int i=0;i<appList.size();i++) {
                RunningAppProcessInfo rti = (RunningAppProcessInfo)appList.get
(i);
                Process p = new Process (rti.pid,rti.processName,rti.pkgList);
                allProcesses.add(p);
                items[i] = p.getProcessName();
        }
        :
        :


Thanks in advance.

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

3. UnknownHostException on 1.5 emulator

4. Broadcast on SIM state change

5. MediaScannerConnection

6. VerifyError with Maps Add-ons

7. canvas and android.graphics.camera 3d rotation issue