Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android manifest for [Qt5.15] SDK31+

Android manifest for [Qt5.15] SDK31+

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 205 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nimaktc
    wrote on last edited by Nimaktc
    #1

    Hi,

    I am having trouble converting my manifest to meet requirements for google playstore as I am not having "android:exported" yet in my manifest file.

    As far as I can see, I need to add a service section to the manifest which has this entity android exported. But I have no idea what to do with the application section.

    Can someone please help me out with this ? This is the current manifest I am using. The app does not run in the background.

    Thanks in advance.

    <?xml version="1.0"?>
    <manifest package="com.mycompany.appsubname" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0.0" android:versionCode="001000000" android:installLocation="auto" android:exported="true">
      <application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="AppName-XYZ" android:icon="@drawable/icon">
        <service android:process=":qt" android:name=".MyCustomService" android:exported="true">
          <intent-filter>
            <action android:name="com.example.app.START_BACKGROUND" />
          </intent-filter>
        </service>
    
        <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="AppName-XYZ" android:screenOrientation="portrait" android:launchMode="singleTop">
          <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
          </intent-filter>
          <!-- Application arguments -->
          <!-- meta-data android:name="android.app.arguments" android:value="arg1 arg2 arg3"/ -->
          <!-- Application arguments -->
          <meta-data android:name="android.app.lib_name" android:value="AppName-XYZ"/>
          <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
          <meta-data android:name="android.app.repository" android:value="default"/>
          <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
          <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
          <!-- Deploy Qt libs as part of package -->
          <meta-data android:name="android.app.bundle_local_qt_libs" android:value="1"/>
          <!--
              <meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>
              <meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>
          -->
          <meta-data android:name="android.app.load_local_libs_resource_id" android:resource="@array/load_local_libs"/>
          <!-- Run with local libs -->
          <meta-data android:name="android.app.use_local_qt_libs" android:value="1"/>
          <meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
          <meta-data android:name="android.app.load_local_libs" android:value="plugins/platforms/android/libqtforandroid.so:plugins/bearer/libqandroidbearer.so:lib/libQt5QuickParticles.so:plugins/webview/libqtwebview_android.so"/>
          <meta-data android:name="android.app.load_local_jars" android:value="jar/QtAndroid.jar:jar/QtAndroidBearer.jar:jar/QtAndroidExtras.jar:jar/QtAndroidWebView.jar:jar/QtAndroidBluetooth.jar"/>
          <meta-data android:name="android.app.static_init_classes" android:value="org.qtproject.qt5.android.bluetooth.QtBluetoothBroadcastReceiver"/>
          <!--  Messages maps -->
          <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>
          <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>
          <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
          <!--  Messages maps -->
          <!-- Splash screen -->
          <!-- meta-data android:name="android.app.splash_screen_sticky" android:value="true"/ -->
          <!-- Splash screen -->
          <!-- Background running -->
          <!-- Warning: changing this value to true may cause unexpected crashes if the
               application still try to draw after
               "applicationStateChanged(Qt::ApplicationSuspended)"
               signal is sent! -->
          <meta-data android:name="android.app.background_running" android:value="false"/>
          <!-- Background running -->
          <!-- auto screen scale factor -->
          <meta-data android:name="android.app.auto_screen_scale_factor" android:value="false"/>
          <!-- auto screen scale factor -->
          <!-- extract android style -->
          <!-- available android:values :
               * full - useful QWidget & Quick Controls 1 apps
               * minimal - useful for Quick Controls 2 apps, it is much faster than "full"
               * none - useful for apps that don't use any of the above Qt modules
          -->
          <meta-data android:name="android.app.extract_android_style" android:value="full"/>
          <!-- extract android style -->
          <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/launchimage"/>
        </activity>
        <!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices -->
      </application>
    
      <!--<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="29"/>-->
    
      <supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
    
      <!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
           Remove the comment if you do not require these default permissions. -->
      <uses-permission android:name="android.permission.INTERNET"/>
      <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
      <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
      <uses-permission android:name="android.permission.BLUETOOTH"/>
      <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
      <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    
    
      <!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application.
           Remove the comment if you do not require these default features. -->
      <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
    
    
    
      <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
    
    
      <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    </manifest>
    
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved