ACTION_PACKAGE_REMOVED (or We just deleted 42.)

by Dianne Hackborn » Thu, 25 Feb 2010 10:38:55 GMT

Sponsored Links
 The data has the package name.


ACTION_PACKAGE_REMOVED (or We just deleted 42.)

by laphroaig15 » Thu, 25 Feb 2010 13:48:01 GMT

 Ah, I see.  The event is useful.  However, even with the package name,
at that late state, I still couldn't retrieve the app's meta data
bundle from the package manager, correct?  I tried to pull the
packages by uid and they had been deleted.  I assume that the app and
pkg infos are gone as well.  I've already built a registry now, but
I'm still curious.



> >

Sponsored Links

Other Threads

1. ProgressDialog call from AsyncTask thread

I have a process, getNextBook, that takes maybe 5 or 20 seconds,
depending on the size of the next book. It works OK but I need to
inform the user that "I'm working, just wait" so they will not tell
the App to do something else before the getNextBook process finishes.
(the code for "something else" is not included for the sake of
simplicity). I have included the display of a ProgressDialog so the
user can see when it is working and when it finishes. I have
experimented until I got it to work but there is something I do not
understand. The code is abbreviated for the sake of simplicity and it
does work even if I have created some error when I abbreviated.)

I utilize AsyncTask to make another thread so I will not block the
main thread. I want to call the ProgressDialog directly from the
AsyncTask getNextBook_T, but I cannot get it to work. Is there a way
to implement the ProgressDialog directly from getNextBook_T? Or is it
OK (or necessary) to do it indirectly like the code shows?

Thanks for your help



public class App01 extends Activity {
        private ProgressDialog pd;

        /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {

    public boolean onOptionsItemSelected(MenuItem item) {
        String strTemp;
        switch (item.getItemId()) {
                        // bla, bla, bla....
                return true;
                        pd =, "", "Downloading next 
                new getNextBook_T().execute();
                return true;
                return super.onOptionsItemSelected(item);

        private class getNextBook_T extends AsyncTask<Void, Void, Integer> {
                protected Integer doInBackground(Void... arg0 ) {
                        return getNextBook();
                protected void onPostExecute(Integer result) {

        public Integer getNextBook(){
        // bla, bla, bla....

        public void pdDismisser(){




2. scaling

Can anyone tell me how to make the emulator scale my android game to
the full window size?

Here's the problem


3. Xoom Camera Settings

4. Device Drivers - Who Maintains the Bastard Devices?

5. Video Capture and Embed Data Into frames at real time in Android 2.1

6. android players that use opencore and stagefright

7. video playback on emulator target android 3.0 API 11