Detect if app is made for Android Wear programmatically -


i want detect apps having android wear support. how detect whether installed app on device android wear or not. afaik, there aren't flags in packageinfo or applicationinfo indicates app supports android wear.

there 1 unaccepted question on so, isn't solution of problem. can extract data <uses-feature android:name="android.hardware.type.watch"/> detect wearable support. searched lot on , google nothing found in official docs. can me out?

you should able retrieve information inspecting android manifest of package.

check out information packaging of android wear apps: https://developer.android.com/training/wearables/apps/packaging.html

specifically, want request meta data of app using packagemanager (packagemanager.get_meta_data) , check meta data field:

<meta-data android:name="com.google.android.wearable.beta.app"                  android:resource="@xml/wearable_app_desc"/> 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -