<table><tr><td style="">mtijink added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8966" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I think <tt style="background: #ebebeb; font-size: 13px;">startForegroundService</tt> is only a promise that you'll call <tt style="background: #ebebeb; font-size: 13px;">startForeground</tt> from the service. So <tt style="background: #ebebeb; font-size: 13px;">startForeground</tt> is needed in any case. Without it, it might not even start the service (because of background limitations).</p>
<p>Regarding the support library problem: I think you can decide to call <tt style="background: #ebebeb; font-size: 13px;">startService</tt> or <tt style="background: #ebebeb; font-size: 13px;">startForegroundService</tt> manually, depending on the API version, even without the newer support library, so it should work on all android versions. I cannot actually test this as I don't have an Android Oreo device.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R225 KDE Connect - Android application</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8966" rel="noreferrer">https://phabricator.kde.org/D8966</a></div></div><br /><div><strong>To: </strong>mtijink, KDE Connect<br /><strong>Cc: </strong>albertvaka, nicolasfella<br /></div>