asorici / envived-client

1 stars 0 forks source link

Listen for Internet Connectivity on Android Clients #2

Open irinagrigorescu opened 11 years ago

irinagrigorescu commented 11 years ago

Android allows detection of network state.

The task is to figure out where in the Activity flow of the Envived Android App we should listen for these notifications and then provide a method to query the status from every Activity in the application.

irinagrigorescu commented 11 years ago

I have tried another approach: instead of implementing a new static method within the Envived class, after further research, I have discovered that the best way to track network connectivity is to create a connectivity change Broadcast Receiver.

It is the first time I am dealing with this, but it seems to be very simple to implement. I have tried it on a test application and every time the network status changes an event is triggered.

When the network becomes unavailable do you think the user should be prompted with a dialog box or something similar? @asorici

irinagrigorescu commented 11 years ago

The push I have made a few minutes ago on branch f/#2 is not resolving this issue 100%.

asorici commented 11 years ago

Completing this issue should entail the following: