willianxie
willianxie

Reputation: 39

get chance to do something when my app was killed

I have an android app . User can get wifi password nearby using my app, then could connect to wifi network.

But if user kill my app after connected to wifi, my app have no chance to get notification, and user can still using wifi . How could I resolve the problem cause I want to know who is using my wifi and get the networktraffic of every user. In some mobile phone, user can kill ererything about the app include service, this make me confused. Please, thank you!

Upvotes: 1

Views: 69

Answers (1)

VerTiGo_Etrex
VerTiGo_Etrex

Reputation: 149

This isn't something you can easily work around. If someone uninstalls your application or kills it, there's nothing you can do to start it again without their permission (there will always be a single point of failure).

If you want to monitor usage, there are many tools available that probably have the feature you're looking for. this question on SU has a great list of tools that you could look into. Monitoring network traffic by MAC address on a system you control is fairly robust. Monitoring on a system that you don't control is not, and never will be.

Upvotes: 1

Related Questions