JJM
JJM

Reputation: 178

Android Wear : InsetActivity

I'm learning Android Wear and I'm confused with the Android Wear. When I create the UI with a watchViewStub it works as expected. When I extend InsetActivity there is no library that knows this kind of object. Checking on Android web site, there is no mention of InsetActivity.

So, where is the mistake? Is it an object that was on pre release and then not used by Android Wear, do I have to use a special library?

Upvotes: 0

Views: 227

Answers (1)

CodeChimp
CodeChimp

Reputation: 4835

InsetActivity is part of the wearable support library. Ensure you have added the following dependency in your wear build.gradle.

compile 'com.google.android.support:wearable:+'

Upvotes: 1

Related Questions