denley / courier

A delivery service for Android Wear. Courier uses the DataApi and MessageApi to deliver objects between devices simply and cleanly.
Apache License 2.0
80 stars 5 forks source link

Use a singleton GoogleApiClient #20

Closed denley closed 9 years ago

denley commented 9 years ago

Currently, a new GoogleApiClient is created for each send request and each startReceiving call. It would be quicker and less memory intensive to connect once and reuse the same client until the app's process is killed.