-1
を着用してください。は、私が使用してクリック上のAndroid Wearにウォッチフェイスから活動を開始しようとしていますウォッチフェイス
Error:(564, 39) error: no suitable constructor found for Intent(DigitalWatchFaceService.Engine,Class<MainActivity>)
constructor Intent.Intent(String,Uri) is not applicable
(argument mismatch; DigitalWatchFaceService.Engine cannot be converted to String)
constructor Intent.Intent(Context,Class<?>) is not applicable
(argument mismatch; DigitalWatchFaceService.Engine cannot be converted to Context)
質問:「ウォッチフェイスからアクティビティを開始する方法はありますか?」 Watchfaceは、CanvasWatchFaceServiceを継承するCanvasWatchFaceService.Engineを使用します。