thaliproject / Tor_Onion_Proxy_Library

Provides a JAR and an AAR for embedding the Tor Onion Proxy into a Java or Android Program
Apache License 2.0
175 stars 98 forks source link

Android NetworkStateReceiver behavior doesn't seem quite right #23

Open yaronyg opened 10 years ago

yaronyg commented 10 years ago

Right now, in theory anyway, we haven't tested it, the Tor OP will have its networking turned on and off automatically based on Android events. Which sounds lovely until you ask yourself - what if the developer wanted to be offline regardless of the network status? Right now the code would override an explicit move offline and put the Tor OP back online when a network status event is received that says that the system is online.

We should also provide some help during startup so one can say 'start up online if possible, otherwise get everything in good state and finish startup when we get online'. We don't do that at the moment.