Application uninstall hook

by Evgeny Rachinskiy » Fri, 28 Aug 2009 08:22:20 GMT


Sponsored Links
 Hi All!

Does anybody know how to hook to application uninstall event?
I need to remove files on SD if my application uninstalled.

Thanks!

Evgeny.
--~--~---------~--~----~------------~-------~--~----~



Application uninstall hook

by Todd » Thu, 03 Sep 2009 08:58:41 GMT


 I have the same situation, I have data files on the SD card that I
would like removed if possible.
Anyone?

Todd



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


Sponsored Links


Application uninstall hook

by biAji » Fri, 04 Sep 2009 11:15:07 GMT


 Same needs here.  Anyone can give a hint?





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



Other Threads

1. Aptana ADT Signing Application

Hi Got a little problem with Signing my Application

I'm Using Aptana (for those that don't know its Eclipse with some add-
ons)

I have the app working and just trying to add it to the market place
but for some reason i'm hitting the wall,

So here's a run though of what i do.

Right click on project

Hover over Android and click on Export Signed Application Package

Click Next

Select Use Existing KeyStone

Location is set to "C:/Program Files/java/jer6/bin/keytool.exe"

I set my password

Click Next

Select Create New Key

I fill out the form and click next

I browse to my desktop to save the *.apk to

Then i click Finish and GET

"Keytool Error: java.io.IOException: Invalid keystore format"

Can any one help please

-- 

2. Setting Widget Icon Image on Widget Load

I am writing my first application and am trying to get my widget to
load a different image when it is added to the home screen based on
the state of the notification volume.  It is detecting the
notification state fine and the proper Toast messages appear when I
add the widget, but I'm not getting any icon.  I just get an empty
button.  I'm using the same code to change the icon in my onReceive()
method to do other things and that works fine.  Is this the proper way
to accomplish that?  Any suggestions as to what I'm doing wrong would
be appreciated!


       @Override
        public void onEnabled(Context context)
        {
                AudioManager aManager = (AudioManager)
context.getSystemService(Context.AUDIO_SERVICE);

                RemoteViews remoteViews = new 
RemoteViews(context.getPackageName(),
R.layout.widget);


                if (aManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION) 
==
0)
                {
                        Toast.makeText(context, "Off", 
Toast.LENGTH_SHORT).show();
                        remoteViews.setImageViewResource(R.id.button, 
R.drawable.off);
                        ComponentName cn = new ComponentName(context, 
SilenceWidget.class);
                        
AppWidgetManager.getInstance(context).updateAppWidget(cn,
remoteViews);
                }
                else
                {
                        Toast.makeText(context, "On", 
Toast.LENGTH_SHORT).show();
                        remoteViews.setImageViewResource(R.id.button, 
R.drawable.on);
                        ComponentName cn = new ComponentName(context, 
SilenceWidget.class);
                        
AppWidgetManager.getInstance(context).updateAppWidget(cn,
remoteViews);
                }
        }

-- 

3. Implementing sync adapter - Sync icon wont disappear

4. using JSON to retrieve .NET Web Service

5. Catching "button" behavior

6. Playing of opencore test output .dat file for VIDEO

7. Detecting area code