Can I shut down the application from another app via intent?

New feature requests for the GPS-Connector app.
Neue Funktionen bzw. Feature Anfragen zur GPS-Connector App.
Antworten
wangmoo
Beiträge: 1
Registriert: Do 23. Dez 2021, 11:22

Can I shut down the application from another app via intent?

Beitrag von wangmoo »

Hi~

Thank you for the great application.

Can I shut down the application from another app via intent?

Thank you so much.
Mazuch
Administrator
Beiträge: 32
Registriert: Mi 11. Nov 2020, 17:54
Kontaktdaten:

Re: Can I shut down the application from another app via intent?

Beitrag von Mazuch »

Hi,
Can I shut down the application from another app via intent?
Yes - you can.

Just set a boolean (true) flag named "de.pilablu.gpsconnector.INTENT_EXIT_APP" in your Intent extra data
and the class name of the intent to "de.pilablu.gpsconnector.status.model.StatusActivity".

I'm using the same mechanism in the GNSS status notification. (there is a exit app action in the notification)

Cheers,
Markus
There is no code so big, twisted, or complex that maintenance can't make it worse. (Gerald M. Weinberg)
Antworten