I am creating an app in which user can uninstall another app and I want to update the app list after the app has been uninstalled.
Is there any way to detect that a certain app has been uninstalled?
I am creating an app in which user can uninstall another app and I want to update the app list after the app has been uninstalled.
Is there any way to detect that a certain app has been uninstalled?
Trying to make app like Remove China Apps?
Hi @golumaths100
Yes you can do that using Activity Starter.
Yes
. Almost completed. I just need to detect that app has been uninstalled.
Can you please show me how I can detect that?
Here is code in java:
Intent intent = new Intent("android.intent.action.DELETE");
intent.setData(Uri.parse("package:" + packageName));
context.startActivity(intent);
Just convert it to blocks and use AfterActivity
event to detect whether activity was completed successfully. But I am not sure that it will work or not
Okay… let me try…
It worked. Thanks for the solution.
Edit: I put the notifier alert which will show the blocks but I think the toast alert were shown by the PackageUtils extension itself. I mistaken that it is shown by the activity starter.
I fount it now. It did not work.
Please show your blocks, so that others can learn from it.
I would have recommended something like this:
Actually it did not work.
I mistaken.
Let me try this.
Note: Don’t forget to ask for WRITE_EXTERNAL_STORAGE permission (eg at Screen.Initialize) or try it with Companion.
Apps which I tested before did not have this permission, and it worked perfectly.
Thanks a lot.
This time it worked.
I think i know what type of app are you developing.
Clue is already here Is there any way to detect that another app has been uninstalled?
I don’t read that but i guess correctly.
There is flood in playstore with this type of apps
Actually no.
There’s very few apps like that.
I also know it
But think twice about publishing it on Play Store. I sense danger ahead