Hi
I´m using the example for Media Chooser from:
www.b4x.com
When I try to compile it throws an error:
AndroidManifest.xml:55: error: 'shortService' is incompatible with attribute foregroundServiceType (attr) flags [camera=64, connectedDevice=16, dataSync=1, location=8, mediaPlayback=2, mediaProjection=32, microphone=128, phoneCall=4].
error: failed processing manifest.
Using B4A 13 release
The latest SDK and Android Resources
Manifest (updated for SDK 34)
Libs: ExoPlayer 3.02
Media Chooser: 1.02
SimpleMediaManager: 1.17
b4xGifView: 1.12
Not sure why it does not recognize "shortService" as valid. What am I missing here?
Thanks
FBP
I´m using the example for Media Chooser from:
[B4X] MediaChooser - cross platform videos and images chooser
This library makes it simple to let the user choose or capture media. Features: Allows the user to capture videos and still pictures (B4A and B4i only). Allows the user to pick videos and pictures. Very easy to use together with SimpleMediaManager. Detects images mime types. Jpeg and Gifs...

When I try to compile it throws an error:
AndroidManifest.xml:55: error: 'shortService' is incompatible with attribute foregroundServiceType (attr) flags [camera=64, connectedDevice=16, dataSync=1, location=8, mediaPlayback=2, mediaProjection=32, microphone=128, phoneCall=4].
error: failed processing manifest.
Using B4A 13 release
The latest SDK and Android Resources
Manifest (updated for SDK 34)
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
SetServiceAttribute(KeepRunningService, android:foregroundServiceType, shortService)
Libs: ExoPlayer 3.02
Media Chooser: 1.02
SimpleMediaManager: 1.17
b4xGifView: 1.12
Not sure why it does not recognize "shortService" as valid. What am I missing here?
Thanks
FBP