Question
I'm developing a Tizen Web Application for TV platform and an Android app using Smart View SDK to establish communication between them. Currently, when I connect to the TV device from the Android app, the TV application launches automatically.
- Is there a way to prevent the TV app from launching automatically after connection?
- Additionally, is it possible to connect to the TV from Android only when the TV application is in the foreground? I'd like to get information about the app state before establishing the connection.
Answer
Problem Understanding
The user is experiencing two related issues with Smart View SDK integration:
- The TV application automatically launches when connecting from an Android device
- Wants to establish connection only when the TV app is in foreground
Solution Methods
-
For preventing auto-launch:
- This behavior is typically controlled by the Smart View SDK implementation
- Check if your SDK version supports configuration options for auto-launch behavior
- Review the Smart View SDK documentation for launch parameters or connection options
-
For foreground-only connection:
- Implement app state checking on the TV side before accepting connections
- Use the Tizen Application API to monitor foreground/background state
- The Android app should first query the TV app state before attempting connection
Additional Tips
- For more specific guidance, I recommend posting your question on the Samsung TV Forum dedicated to Smart View SDK: https://developer.samsung.com/smart-view
- The forum has active developers who can share their experiences with similar implementations
- When posting, include details about:
- Your Smart View SDK version
- Tizen TV app implementation details
- Any relevant code snippets