- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2021 04:32 AM in
Galaxy WatchHi,
After porting Android application that previously ran on Wear OS to Galaxy watch 4 I came upon unexpected issue with bringing the application back to foreground after it was sent to background by pressing on the Home button.
In Wear OS it was a simple matter of starting an empty activity while in background what returned the application back to the fore.
In Galaxy watch 4 it doesn't work (probably due to new Google restrictions concerning opening activities while in background: https://developer.android.com/guide/components/activities/background-starts).
I was trying to resolve this issue by ambient mode but without success.
So I would really appreciate your kind assistance in solving this:
How can I bring application back to foreground programmatically in Galaxy watch 4.
Thanks in advance
Solved! Go to Solution.
1 Solution
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2021 03:30 AM in
Galaxy Watchthe solution is requesting the following permission:
android.permission.SYSTEM_ALERT_WINDOW
This allows app overlay that in turn allows starting activities while app in BG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2021 05:17 AM in
Galaxy Watch@userZQCXRiJzCk I think that you would have much better luck posting this question in a Wear OS developers forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2021 03:30 AM in
Galaxy Watchthe solution is requesting the following permission:
android.permission.SYSTEM_ALERT_WINDOW
This allows app overlay that in turn allows starting activities while app in BG