custom cleanup on application uninstall

by shahzad ahmad » Thu, 05 Feb 2009 17:34:27 GMT


Sponsored Links
 Is there any mechanism in android to perform post uninstall functions ? Are
there any functions which an application can override to perform custom
cleanup when it is being uninstalled ? Actually  i want  to delete  some
application specific files on uninstall


thanks,
shahzad

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



custom cleanup on application uninstall

by kingtut » Tue, 24 Mar 2009 22:34:21 GMT


 Did anyone figure it out yet? I wanna do the same thing.



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


Sponsored Links


Other Threads

1. WikiNote -apps-for-android build error

Hi,

Has anyone gotten the WikiNote from
http://code.google.com/p/apps-for-android/ ???

What I did was:

1) checkedout the project via apps-for-android instructions [svn
checkout http://apps-for-android.googlecode.com/svn/trunk/
apps-for-android-read-only]
2) opened a new Android project using existing source dir [per the
WikiNote direction]
3) cleaned the project and let it rebuild

It won't build the apk though and reports compilation errors (the top
level dir is flagged red in eclipse but nothing else is so I can't
track down where the error supposedly is)

Java Model Exception: Java Model Status [gen [in WikiNotes] does not exist]
        at 
org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:502)
        at 
org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:246)
        at 
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:515)
        at 
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:252)
        at 
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:238)
        at 
org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:477)
        at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:645)
        at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:791)
        at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:734)
        at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:791)
        at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:734)
        at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:124)
        at 
org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1557)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at 
org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:1547)
        at 
org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:1381)
        at 
org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1357)
        at 
org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:1958)
        at 
org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:470)
        at 
org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at 
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
        at 
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
        at 
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
        at 
org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
        at 
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


eclipse.buildId=I20090611-1540
java.version=1.5.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
-keyring /Users/me/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86 -product
org.eclipse.epp.package.jee.product -keyring /me/.eclipse_keyring
-showlocation

Thanks,

Shawn

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

2. How to make an activity destory when user presses 'Back button?

Hi,

When I currently have my activity on the font of the screen, how can I
make Android to 'destory' my activity when user clicks 'back' button?
(i.e. onDestory of my Activity gets called)?

Thank you.

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

3. Why are the save/restore lifecycle events called twice when switching the emulator from landscape to portrait?

4. How to make an activity destory when user presses 'Back button?

5. Issue with multiple child views created programmatically

6. Ethernet / IP over USB connection?

7. Jiwa Baru Sang Jagon