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

"Missing Annotations?" #21

Closed ChrisOwen101 closed 9 years ago

ChrisOwen101 commented 9 years ago

If you add Courier.startReceiving() and Courier.StopReceiving() to your code but do not use any annotations then it throws this error and force closes the app:

 Caused by: java.lang.IllegalStateException: Courier not found for nimbletank.asoswearable.Activities.MoreInformationActivity. Missing annotations

Could this restriction be removed? Simply because its a bit annoying if you forget to remove them when you're programming.

denley commented 9 years ago

Hi Chris, thanks for using Courier.

I can see how it's a little annoying in your case, but there are a few other cases where this error might also occur:

In these three instances it is better to crash with a message than to silently fail, as things will not work as intended. Since there's no way to differentiate between these cases at runtime, I think its best to leave the error message there.