ShareWear Android App
Coded in Java (Android 5.0), Python |
August 9, 2015
At conferences or other large events, it would be nice to not have to carry business
cards or type in the contact information of everyone you meet. ShareWear tries to solve this
by providing a one-tap system to share your contact information. This is done using NFC and
the Android Beam API. Furthermore, once you connect with someone, you can share your current
location with them, making it easier to find each other. This can also be done on an Android
Wear smartwatch, so you don't even have to pull your phone out!
Android App and Server
The app was written with the Android 5.0 SDK. Here is the app icon below!
When first using the app, the user must input the information they want to share with
others. This also sends a request to the ShareWear server (a SimpleHTTPServer in Python) to
record a new user. A unique ID is associated with each user, which allows the server to handle
requests between two ShareWear users.
Sharing Contacts
ShareWear syncs contacts using the Contacts API, but maintains a separate "Favorites" list for
favorited ShareWear contacts. Contacts added on this app will appear in a separate "ShareWear"
folder when viewed in the Android system contact book.
Adding a contact can be done in two ways: manually or via NFC. If the other user also uses
ShareWear, they can share their information by tapping their screen and beaming it over using
NFC. This will pre-populate the "Add Contact" screen with the information set up the first
time they used the app.
Sharing Location
Location sharing is started via the screen below.
A notification appears and the user can use it to get back to the location sharing activity
from another app.
If another user is requesting a location, a notification also appears. Location sharing can
be started from this notification.
Android Wear App
The app also has an Android Wear companion, which will display location requests and
allow the user to respond to the request from their smartwatch.
There is also a standalone Wear app to start location sharing without a request from
someone else.