Is there any way to detect that another 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?

1 Like

Trying to make app like Remove China Apps?

1 Like

Hi @golumaths100
Yes you can do that using Activity Starter.

2 Likes

Yes :grimacing: :grimacing:. Almost completed. I just need to detect that app has been uninstalled.

1 Like

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 :sweat_smile:

Okay… let me try… :sweat_smile:

It worked. Thanks for the solution. :relieved:

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. :frowning:

Please show your blocks, so that others can learn from it.

I would have recommended something like this:

3 Likes

Actually it did not work.

I mistaken.

Let me try this.

2 Likes

Note: Don’t forget to ask for WRITE_EXTERNAL_STORAGE permission (eg at Screen.Initialize) or try it with Companion.

3 Likes

Apps which I tested before did not have this permission, and it worked perfectly. :sweat_smile:

Thanks a lot.

This time it worked. :slight_smile:

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

2 Likes

Actually no.
There’s very few apps like that.
:wink:

3 Likes

I also know it :ghost::ghost:

1 Like

But think twice about publishing it on Play Store. I sense danger ahead :sweat_smile: