Question
I'm trying to implement the HelloAccessory_web example with Provider(Tizen) and Consumer(Android). While the Provider(Tizen) part works fine, I'm encountering an issue with the Consumer(Android) part.
When I import and run the Consumer(Android) application, I get the following error:
$ adb shell pm install -r "/data/local/tmp/provider.helloaccessory.example.accessory.sdk.android.samsung.com.helloaccessoryprovider"
pkg: /data/local/tmp/provider.helloaccessory.example.accessory.sdk.android.samsung.com.helloaccessoryprovider
Success
Could not identify launch activity: Default Activity not found
Error while Launching activity
The connection and fetch operations are not working. How can I resolve this issue?
Answer
Problem Understanding
The error occurs because you're trying to install and run the wrong package. The HelloAccessoryProvider doesn't have a UI component, which is why you're getting the "Default Activity not found" error. You need to install the HelloAccessoryConsumer package instead.
Solution Methods
-
Correct Package Installation:
- For Provider(Tizen)_Consumer(Android) configuration, you should install the HelloAccessoryConsumer on your Android device.
- The correct package name is: "com.samsung.android.sdk.accessory.example.helloaccessory.consumer"
-
Location of Correct Package:
- The correct APK is located in:
.../HelloAccessory_Web/Provider(Tizen)_Consumer(Android)/Consumer/app/..
- The correct APK is located in:
-
Default Activity:
- The default activity for the consumer app is:
com.samsung.android.sdk.accessory.example.helloaccessory.consumer.ConsumerActivity
- The default activity for the consumer app is:
Additional Tips
- Make sure you're using the correct configuration:
- For Provider(Tizen)_Consumer(Android):
- Provider runs on Gear device
- Consumer runs on Host device with UI
- For Provider(Tizen)_Consumer(Android):
- For detailed implementation, refer to the official documentation: HelloAccessory Sample App